Skip to content

Commit a28769d

Browse files
committed
netfilter: nft_set_pipapo: stop GC iteration if GC transaction allocation fails
JIRA: https://issues.redhat.com/browse/RHEL-1720 JIRA: https://issues.redhat.com/browse/RHEL-1721 Upstream Status: commit 6d365ea commit 6d365ea Author: Pablo Neira Ayuso <pablo@netfilter.org> Date: Wed Sep 6 17:22:58 2023 +0200 netfilter: nft_set_pipapo: stop GC iteration if GC transaction allocation fails nft_trans_gc_queue_sync() enqueues the GC transaction and it allocates a new one. If this allocation fails, then stop this GC sync run and retry later. Fixes: 5f68718 ("netfilter: nf_tables: GC transaction API to avoid race with control plane") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Florian Westphal <fwestpha@redhat.com>
1 parent d1e4596 commit a28769d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nft_set_pipapo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,7 @@ static void pipapo_gc(const struct nft_set *_set, struct nft_pipapo_match *m)
15971597

15981598
gc = nft_trans_gc_queue_sync(gc, GFP_ATOMIC);
15991599
if (!gc)
1600-
break;
1600+
return;
16011601

16021602
nft_pipapo_gc_deactivate(net, set, e);
16031603
pipapo_drop(m, rulemap);

0 commit comments

Comments
 (0)