netfilter: nft_set: remove one argument from lookup and update functions
[ Upstream commit 17a20e09 ] 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> Stable-dep-of: c4eaca2e ("netfilter: nft_set_pipapo: don't check genbit from packetpath lookups") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading