]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netfilter: nf_tables: Simplify chain netdev notifier
authorPhil Sutter <phil@nwl.cc>
Thu, 9 Jan 2025 17:31:37 +0000 (18:31 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 19 Jan 2025 15:41:54 +0000 (16:41 +0100)
commit375f222800bc001bb9cbd2baa1daec006430aeba
treedcea3ee5c4ec57e959efc26604d5ffac20987ffc
parentfc0133428e7ad65aa6b7c8e65ccfe86e469e4512
netfilter: nf_tables: Simplify chain netdev notifier

With conditional chain deletion gone, callback code simplifies: Instead
of filling an nft_ctx object, just pass basechain to the per-chain
function. Also plain list_for_each_entry() is safe now.

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