diff options
author | Phil Sutter <phil@nwl.cc> | 2025-01-09 18:31:32 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2025-01-19 16:41:52 +0100 |
commit | 2a67414a143e120527e17f8372f13d3b31eeb5a3 (patch) | |
tree | 91f5eade448daabf76d2c533d6d847c178c942db /net/atm/resources.h | |
parent | d01ed3240b22ffd76b7e1ebcabce900fc00cc8d0 (diff) | |
download | linux-2a67414a143e120527e17f8372f13d3b31eeb5a3.tar.gz linux-2a67414a143e120527e17f8372f13d3b31eeb5a3.tar.bz2 linux-2a67414a143e120527e17f8372f13d3b31eeb5a3.zip |
netfilter: nf_tables: Flowtable hook's pf value never varies
When checking for duplicate hooks in nft_register_flowtable_net_hooks(),
comparing ops.pf value is pointless as it is always NFPROTO_NETDEV with
flowtable hooks.
Dropping the check leaves the search identical to the one in
nft_hook_list_find() so call that function instead of open coding.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/atm/resources.h')
0 files changed, 0 insertions, 0 deletions