public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] netkit: two minor cleanups
@ 2023-10-26  9:41 Nikolay Aleksandrov
  2023-10-26  9:41 ` [PATCH bpf-next 1/2] netkit: remove explicit active/peer ptr initialization Nikolay Aleksandrov
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Nikolay Aleksandrov @ 2023-10-26  9:41 UTC (permalink / raw)
  To: bpf
  Cc: jiri, netdev, martin.lau, ast, andrii, john.fastabend, kuba,
	andrew, toke, toke, sdf, daniel, Nikolay Aleksandrov

Hi,
This set does two minor cleanups mentioned by Jiri. The first patch
removes explicit NULLing of primary/peer pointers and relies on the
implicit mem zeroing done at net device alloc. The second patch switches
netkit's mode and primary/peer policy netlink attributes to use
NLA_POLICY_VALIDATE_FN() type and sets the custom validate function to
return better user errors. This way netlink's policy is used to validate
the attributes and simplifies the code a bit. No functional changes are
intended.

Thanks,
 Nik


Nikolay Aleksandrov (2):
  netkit: remove explicit active/peer ptr initialization
  netkit: use netlink policy for mode and policy attributes validation

 drivers/net/netkit.c | 70 ++++++++++++++------------------------------
 1 file changed, 22 insertions(+), 48 deletions(-)

-- 
2.38.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-10-26 14:34 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-26  9:41 [PATCH bpf-next 0/2] netkit: two minor cleanups Nikolay Aleksandrov
2023-10-26  9:41 ` [PATCH bpf-next 1/2] netkit: remove explicit active/peer ptr initialization Nikolay Aleksandrov
2023-10-26 12:12   ` Daniel Borkmann
2023-10-26 13:21   ` Jiri Pirko
2023-10-26  9:41 ` [PATCH bpf-next 2/2] netkit: use netlink policy for mode and policy attributes validation Nikolay Aleksandrov
2023-10-26 12:13   ` Daniel Borkmann
2023-10-26 13:23   ` Jiri Pirko
2023-10-26 14:11   ` Ido Schimmel
2023-10-26 14:23     ` Nikolay Aleksandrov
2023-10-26 14:25       ` Daniel Borkmann
2023-10-26 14:34       ` Nikolay Aleksandrov
2023-10-26 14:10 ` [PATCH bpf-next 0/2] netkit: two minor cleanups patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox