diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-01-08 20:38:03 -0500 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-01-10 09:32:08 -0500 |
commit | 36596dadf54a920d26286cf9f421fb4ef648b51f (patch) | |
tree | e9e5cdd54acb21f0ccfa88c851bb7f6418bc4609 /include/net/netns | |
parent | 1ea26cca52e46c0f29ee9fdd567312ba93a7d651 (diff) |
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>
Diffstat (limited to 'include/net/netns')
-rw-r--r-- | include/net/netns/nftables.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netns/nftables.h b/include/net/netns/nftables.h index 4109b5f3010f..7f86a63ac21f 100644 --- a/include/net/netns/nftables.h +++ b/include/net/netns/nftables.h | |||
@@ -8,6 +8,7 @@ struct nft_af_info; | |||
8 | 8 | ||
9 | struct netns_nftables { | 9 | struct netns_nftables { |
10 | struct list_head af_info; | 10 | struct list_head af_info; |
11 | struct list_head tables; | ||
11 | struct list_head commit_list; | 12 | struct list_head commit_list; |
12 | struct nft_af_info *ipv4; | 13 | struct nft_af_info *ipv4; |
13 | struct nft_af_info *ipv6; | 14 | struct nft_af_info *ipv6; |