Commit 2a67414
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 <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>1 parent d01ed32 commit 2a67414
1 file changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8895 | 8895 | | |
8896 | 8896 | | |
8897 | 8897 | | |
8898 | | - | |
| 8898 | + | |
8899 | 8899 | | |
8900 | 8900 | | |
8901 | 8901 | | |
| |||
8904 | 8904 | | |
8905 | 8905 | | |
8906 | 8906 | | |
8907 | | - | |
8908 | | - | |
8909 | | - | |
8910 | | - | |
8911 | | - | |
8912 | | - | |
| 8907 | + | |
| 8908 | + | |
| 8909 | + | |
8913 | 8910 | | |
8914 | 8911 | | |
8915 | 8912 | | |
| |||
0 commit comments