]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netfilter: nft_set_pipapo: prepare pipapo_get helper for on-demand clone
authorFlorian Westphal <fw@strlen.de>
Thu, 25 Apr 2024 12:06:45 +0000 (14:06 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 10 May 2024 09:04:08 +0000 (11:04 +0200)
commita238106703ab4ae1090b86eba128815b8626d8f1
tree29c57fbc7d6539ca07fa4d64df27247be6822c0f
parentc5444786d0ea2417a5e2cee7bd67137fc8bad687
netfilter: nft_set_pipapo: prepare pipapo_get helper for on-demand clone

The helper uses priv->clone unconditionally which will fail once we do
the clone conditionally on first insert or removal.

'nft get element' from userspace needs to use priv->match since this
runs from rcu read side lock section.

Prepare for this by passing the match backend data as 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>
net/netfilter/nft_set_pipapo.c