diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2024-10-04 12:13:32 +0200 |
---|---|---|
committer | Martin KaFai Lau <martin.lau@kernel.org> | 2024-10-07 17:12:37 -0700 |
commit | 0ebe224ffce83b3c2b331295d473296220d9fc36 (patch) | |
tree | 335a8c8d09675a89c053867339703411e18d6a10 /tools/include | |
parent | 83134ef4609388f6b9ca31a384f531155196c2a7 (diff) |
netkit: Simplify netkit mode over to use NLA_POLICY_MAX
Jakub suggested to rely on netlink policy validation via NLA_POLICY_MAX()
instead of open-coding it. netkit_check_mode() is a candidate which can
be simplified through this as well aside from the netkit scrubbing one.
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Nikolay Aleksandrov <razor@blackwall.org>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://lore.kernel.org/r/20241004101335.117711-2-daniel@iogearbox.net
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'tools/include')
0 files changed, 0 insertions, 0 deletions