mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-01 18:21:29 +00:00
netfilter: nf_tables: adapt set backend to use GC transaction API
commitf6c383b8c3upstream. Use the GC transaction API to replace the old and buggy gc API and the busy mark approach. No set elements are removed from async garbage collection anymore, instead the _DEAD bit is set on so the set element is not visible from lookup path anymore. Async GC enqueues transaction work that might be aborted and retried later. rbtree and pipapo set backends does not set on the _DEAD bit from the sync GC path since this runs in control plane path where mutex is held. In this case, set elements are deactivated, removed and then released via RCU callback, sync GC never fails. Fixes:3c4287f620("nf_tables: Add set type for arbitrary concatenation of ranges") Fixes:8d8540c4f5("netfilter: nft_set_rbtree: add timeout support") Fixes:9d0982927e("netfilter: nft_hash: add support for timeouts") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
ea3eb9f219
commit
df650d6a4b
4 changed files with 173 additions and 103 deletions
Loading…
Add table
Add a link
Reference in a new issue