diff options
author | 2025-07-09 19:05:13 +0200 | |
---|---|---|
committer | 2025-07-25 18:40:16 +0200 | |
commit | 17a20e09f086f2c574ac87f3cf6e14c4377f65f6 (patch) | |
tree | 718c19bff842cfcbf2ef90df467e0ae63562a477 /tools/perf/scripts/python/Perf-Trace-Util/lib | |
parent | netfilter: nft_set_pipapo: remove unused arguments (diff) | |
download | wireguard-linux-17a20e09f086f2c574ac87f3cf6e14c4377f65f6.tar.xz wireguard-linux-17a20e09f086f2c574ac87f3cf6e14c4377f65f6.zip |
netfilter: nft_set: remove one argument from lookup and update functions
Return the extension pointer instead of passing it as a function
argument to be filled in by the callee.
As-is, whenever false is returned, the extension pointer is not used.
For all set types, when true is returned, the extension pointer was set
to the matching element.
Only exception: nft_set_bitmap doesn't support extensions.
Return a pointer to a static const empty element extension container.
return false -> return NULL
return true -> return the elements' extension pointer.
This saves one function argument.
Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions