]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b61ed5a6a27eca83928dc35baee9ae96e09c0c5
tree6b111b82fc5991876e976e8a4a70d3ee619f6b4a
parent31b8c848875e77340500284831b7d4414dae34af
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