]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netfilter: nf_tables: Introduce nft_hook_find_ops{,_rcu}()
authorPhil Sutter <phil@nwl.cc>
Wed, 21 May 2025 20:44:23 +0000 (22:44 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 23 May 2025 11:57:12 +0000 (13:57 +0200)
commite225376d78fb2d85e99a2436a9e65765dc1ac234
treea34d6b130745fb6bbc380c9c574c65f9ef9a1e5c
parent75e20bcdce24b34e9bf71a7a731f9294fb2c633c
netfilter: nf_tables: Introduce nft_hook_find_ops{,_rcu}()

Also a pretty dull wrapper around the hook->ops.dev comparison for now.
Will search the embedded nf_hook_ops list in future. The ugly cast to
eliminate the const qualifier will vanish then, too.

Since this future list will be RCU-protected, also introduce an _rcu()
variant here.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nf_tables_offload.c
net/netfilter/nft_chain_filter.c
net/netfilter/nft_flow_offload.c