netfilter: nf_tables: add single table list for all families
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 9 Jan 2018 01:38:03 +0000 (02:38 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 10 Jan 2018 14:32:08 +0000 (15:32 +0100)
commit36596dadf54a920d26286cf9f421fb4ef648b51f
treee9e5cdd54acb21f0ccfa88c851bb7f6418bc4609
parent1ea26cca52e46c0f29ee9fdd567312ba93a7d651
netfilter: nf_tables: add single table list for all families

Place all existing user defined tables in struct net *, instead of
having one list per family. This saves us from one level of indentation
in netlink dump functions.

Place pointer to struct nft_af_info in struct nft_table temporarily, as
we still need this to put back reference module reference counter on
table removal.

This patch comes in preparation for the removal of struct nft_af_info.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
12 files changed:
include/net/netfilter/nf_tables.h
include/net/netns/nftables.h
net/netfilter/nf_tables_api.c
net/netfilter/nf_tables_netdev.c
net/netfilter/nft_compat.c
net/netfilter/nft_ct.c
net/netfilter/nft_flow_offload.c
net/netfilter/nft_log.c
net/netfilter/nft_masq.c
net/netfilter/nft_meta.c
net/netfilter/nft_nat.c
net/netfilter/nft_redir.c