netfilter: nft_set_pipapo: call nft_trans_gc_queue_sync() in catchall GC
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 6 Sep 2023 13:07:53 +0000 (15:07 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 8 Sep 2023 01:26:57 +0000 (03:26 +0200)
commit4a9e12ea7e70223555ec010bec9f711089ce96f6
treecee64e49d48a0c9904488049fc927b4819ed1e5f
parent96b33300fba880ec0eafcf3d82486f3463b4b6da
netfilter: nft_set_pipapo: call nft_trans_gc_queue_sync() in catchall GC

pipapo needs to enqueue GC transactions for catchall elements through
nft_trans_gc_queue_sync(). Add nft_trans_gc_catchall_sync() and
nft_trans_gc_catchall_async() to handle GC transaction queueing
accordingly.

Fixes: 5f68718b34a5 ("netfilter: nf_tables: GC transaction API to avoid race with control plane")
Fixes: f6c383b8c31a ("netfilter: nf_tables: adapt set backend to use GC transaction API")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nft_set_hash.c
net/netfilter/nft_set_pipapo.c
net/netfilter/nft_set_rbtree.c