netfilter: nf_tables: remove nhooks field from struct nft_af_info
We already validate the hook through bitmask, so this check is
superfluous. When removing this, this patch is also fixing a bug in the
new flowtable codebase, since ctx->afi points to the table family
instead of the netdev family which is where the flowtable is really
hooked in.
Signed-off-by:
Pablo Neira Ayuso <pablo@netfilter.org>
Showing
- include/net/netfilter/nf_tables.h 0 additions, 2 deletionsinclude/net/netfilter/nf_tables.h
- net/bridge/netfilter/nf_tables_bridge.c 0 additions, 1 deletionnet/bridge/netfilter/nf_tables_bridge.c
- net/ipv4/netfilter/nf_tables_arp.c 0 additions, 1 deletionnet/ipv4/netfilter/nf_tables_arp.c
- net/ipv4/netfilter/nf_tables_ipv4.c 0 additions, 1 deletionnet/ipv4/netfilter/nf_tables_ipv4.c
- net/ipv6/netfilter/nf_tables_ipv6.c 0 additions, 1 deletionnet/ipv6/netfilter/nf_tables_ipv6.c
- net/netfilter/nf_tables_api.c 1 addition, 4 deletionsnet/netfilter/nf_tables_api.c
- net/netfilter/nf_tables_inet.c 0 additions, 1 deletionnet/netfilter/nf_tables_inet.c
- net/netfilter/nf_tables_netdev.c 0 additions, 1 deletionnet/netfilter/nf_tables_netdev.c
Loading
Please register or sign in to comment