Skip to content

netkit: two minor cleanups

Nikolay Aleksandrov bpf netdev 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2netkit: remove explicit active/peer ptr initializationdrivers/net/netkit.c+0 -42 repliesApplied
2/2netkit: use netlink policy for mode and policy attributes validationdrivers/net/netkit.c+22 -446 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDaniel BorkmannJiri Pirko
1/2A-b R-b
2/2A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf-next 0/2] netkit: two minor cleanups

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(-)
Signature · 1 line
2.38.1