netfilter: nf_tables: remove nhooks field from struct nft_af_info
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 19 Dec 2017 12:53:45 +0000 (13:53 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 10 Jan 2018 14:32:04 +0000 (15:32 +0100)
commitfe19c04ca13737a48277fad28d912efbd72c1772
tree0f60983ed7648da60a5eeaad2f26e4eb33ccab98
parent61ad64080e039dce99a7f8d89b729bbea995e2f7
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>
include/net/netfilter/nf_tables.h
net/bridge/netfilter/nf_tables_bridge.c
net/ipv4/netfilter/nf_tables_arp.c
net/ipv4/netfilter/nf_tables_ipv4.c
net/ipv6/netfilter/nf_tables_ipv6.c
net/netfilter/nf_tables_api.c
net/netfilter/nf_tables_inet.c
net/netfilter/nf_tables_netdev.c