diff options
author | 2024-10-04 12:13:32 +0200 | |
---|---|---|
committer | 2024-10-07 17:12:37 -0700 | |
commit | 0ebe224ffce83b3c2b331295d473296220d9fc36 (patch) | |
tree | 335a8c8d09675a89c053867339703411e18d6a10 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | netkit: Add option for scrubbing skb meta data (diff) | |
download | wireguard-linux-0ebe224ffce83b3c2b331295d473296220d9fc36.tar.xz wireguard-linux-0ebe224ffce83b3c2b331295d473296220d9fc36.zip |
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/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions