netfilter: netns nf_conntrack: per-netns expectations
Make per-netns a) expectation hash and b) expectations count. Expectations always belongs to netns to which it's master conntrack belong. This is natural and doesn't bloat expectation. Proc files and leaf users are stubbed to init_net, this is temporary. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:

committed by
Patrick McHardy

parent
b21f890193
commit
9b03f38d04
@@ -5,7 +5,10 @@
|
||||
|
||||
struct netns_ct {
|
||||
atomic_t count;
|
||||
unsigned int expect_count;
|
||||
struct hlist_head *hash;
|
||||
struct hlist_head *expect_hash;
|
||||
int hash_vmalloc;
|
||||
int expect_vmalloc;
|
||||
};
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user