netfilter: nf_tables: get rid of pernet families
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 9 Jan 2018 01:42:11 +0000 (02:42 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 10 Jan 2018 14:32:10 +0000 (15:32 +0100)
commitdd4cbef7235154f163501ffbf396c0dadd830c9c
tree6b111b82fc5991876e976e8a4a70d3ee619f6b4a
parent36596dadf54a920d26286cf9f421fb4ef648b51f
netfilter: nf_tables: get rid of pernet families

Now that we have a single table list for each netns, we can get rid of
one pointer per family and the global afinfo list, thus, shrinking
struct netns for nftables that now becomes 64 bytes smaller.

And call __nft_release_afinfo() from __net_exit path accordingly to
release netnamespace objects on removal.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
include/net/netns/nftables.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