]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: nft_set_hash: GC reaps elements with conncount for dynamic sets only
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 21 Mar 2025 22:24:20 +0000 (23:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:33 +0000 (14:39 +0200)
commit86bd9609fd3ec64e4807117d635e187d523b3438
treeeac87ceb5f40b2b204d2f1987421fe7d4bdbd653
parent79618e952ef4dfa1a17ee0631d5549603fab58d8
netfilter: nft_set_hash: GC reaps elements with conncount for dynamic sets only

[ Upstream commit 9d74da1177c800eb3d51c13f9821b7b0683845a5 ]

conncount has its own GC handler which determines when to reap stale
elements, this is convenient for dynamic sets. However, this also reaps
non-dynamic sets with static configurations coming from control plane.
Always run connlimit gc handler but honor feedback to reap element if
this set is dynamic.

Fixes: 290180e2448c ("netfilter: nf_tables: add connlimit support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nft_set_hash.c