diff options
author | Florian Westphal <fw@strlen.de> | 2021-04-12 21:55:42 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-04-13 13:10:39 +0200 |
commit | f6f2e580d5f7152fb5ab11232edecb7fbeca3759 (patch) | |
tree | a2fa2998935c7cd4d370587d1b13df04a08b1b2c /include/net/netfilter/nf_conntrack.h | |
parent | 67f28216ca04b9ba965cd652fea08f670b99a0c6 (diff) | |
download | linux-stable-f6f2e580d5f7152fb5ab11232edecb7fbeca3759.tar.gz linux-stable-f6f2e580d5f7152fb5ab11232edecb7fbeca3759.tar.bz2 linux-stable-f6f2e580d5f7152fb5ab11232edecb7fbeca3759.zip |
netfilter: conntrack: move expect counter to net_generic data
Creation of a new conntrack entry isn't a frequent operation (compared
to 'ct entry already exists'). Creation of a new entry that is also an
expected (related) connection even less so.
Place this counter in net_generic data.
A followup patch will also move the conntrack count -- this will make
netns_ct a read-mostly structure.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter/nf_conntrack.h')
-rw-r--r-- | include/net/netfilter/nf_conntrack.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_conntrack.h b/include/net/netfilter/nf_conntrack.h index db8f047eb75f..0578a905b1df 100644 --- a/include/net/netfilter/nf_conntrack.h +++ b/include/net/netfilter/nf_conntrack.h @@ -45,6 +45,7 @@ union nf_conntrack_expect_proto { struct nf_conntrack_net { /* only used when new connection is allocated: */ + unsigned int expect_count; u8 sysctl_auto_assign_helper; bool auto_assign_helper_warned; |