netfilter: conntrack: use a single nat bysource table for all namespaces
We already include netns address in the hash, so we only need to use net_eq in find_appropriate_src and can then put all entries into same table. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:

committed by
Pablo Neira Ayuso

parent
464c38556e
commit
a76ae1c855
@@ -103,9 +103,5 @@ struct netns_ct {
|
||||
unsigned int labels_used;
|
||||
u8 label_words;
|
||||
#endif
|
||||
#ifdef CONFIG_NF_NAT_NEEDED
|
||||
struct hlist_head *nat_bysource;
|
||||
unsigned int nat_htable_size;
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user