summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_conntrack_core.c
diff options
context:
space:
mode:
authorMartin Josefsson2006-11-29 02:35:04 +0100
committerDavid S. Miller2006-12-03 06:31:08 +0100
commite2b7606cdb602a4f69c02cfc8bebe9c63b595e24 (patch)
treeca56dcbad9b5d3ca8b1f5626e6587b5aa3d168e4 /net/netfilter/nf_conntrack_core.c
parent[NETFILTER]: nf_conntrack: split out protocol handling (diff)
downloadkernel-qcow2-linux-e2b7606cdb602a4f69c02cfc8bebe9c63b595e24.tar.gz
kernel-qcow2-linux-e2b7606cdb602a4f69c02cfc8bebe9c63b595e24.tar.xz
kernel-qcow2-linux-e2b7606cdb602a4f69c02cfc8bebe9c63b595e24.zip
[NETFILTER]: More __read_mostly annotations
Place rarely written variables in the read-mostly section by using __read_mostly Signed-off-by: Martin Josefsson <gandalf@wlug.westbo.se> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/netfilter/nf_conntrack_core.c')
-rw-r--r--net/netfilter/nf_conntrack_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c
index 09c0e6311044..6607ed415861 100644
--- a/net/netfilter/nf_conntrack_core.c
+++ b/net/netfilter/nf_conntrack_core.c
@@ -73,10 +73,10 @@ DEFINE_RWLOCK(nf_conntrack_lock);
atomic_t nf_conntrack_count = ATOMIC_INIT(0);
void (*nf_conntrack_destroyed)(struct nf_conn *conntrack) = NULL;
-unsigned int nf_conntrack_htable_size __read_mostly = 0;
+unsigned int nf_conntrack_htable_size __read_mostly;
int nf_conntrack_max __read_mostly;
struct list_head *nf_conntrack_hash __read_mostly;
-struct nf_conn nf_conntrack_untracked;
+struct nf_conn nf_conntrack_untracked __read_mostly;
unsigned int nf_ct_log_invalid __read_mostly;
LIST_HEAD(unconfirmed);
static int nf_conntrack_vmalloc __read_mostly;