]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netfilter: nf_tables: Pass nf_hook_ops to nft_unregister_flowtable_hook()
authorPhil Sutter <phil@nwl.cc>
Wed, 21 May 2025 20:44:25 +0000 (22:44 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 23 May 2025 11:57:13 +0000 (13:57 +0200)
commit91a089d0569d3ddfa70d0b630ec164e00dc3359b
tree69eaaaea97741f2cf8d13e2725140af17c017ebd
parent21aa0a03eb5360bc55b25f5599523896beac27df
netfilter: nf_tables: Pass nf_hook_ops to nft_unregister_flowtable_hook()

The function accesses only the hook's ops field, pass it directly. This
prepares for nft_hooks holding a list of nf_hook_ops in future.

While at it, make use of the function in
__nft_unregister_flowtable_net_hooks() as well.

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