summaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorPatrick McHardy2007-12-05 10:29:38 +0100
committerDavid S. Miller2008-01-28 23:56:21 +0100
commit9d6023ab8b97f5074f9007c92d38fef9ae04e56b (patch)
treefefe43e1470caaeecd04a75c27c5602d6134e9e7 /net/netfilter
parent[NETFILTER]: nfnetlink_queue: remove useless debugging (diff)
downloadkernel-qcow2-linux-9d6023ab8b97f5074f9007c92d38fef9ae04e56b.tar.gz
kernel-qcow2-linux-9d6023ab8b97f5074f9007c92d38fef9ae04e56b.tar.xz
kernel-qcow2-linux-9d6023ab8b97f5074f9007c92d38fef9ae04e56b.zip
[NETFILTER]: nfnetlink_queue: mark hash table __read_mostly
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/nfnetlink_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c
index c3aba1e8c5c4..de48fd3d8a38 100644
--- a/net/netfilter/nfnetlink_queue.c
+++ b/net/netfilter/nfnetlink_queue.c
@@ -63,7 +63,7 @@ typedef int (*nfqnl_cmpfn)(struct nf_queue_entry *, unsigned long);
static DEFINE_SPINLOCK(instances_lock);
#define INSTANCE_BUCKETS 16
-static struct hlist_head instance_table[INSTANCE_BUCKETS];
+static struct hlist_head instance_table[INSTANCE_BUCKETS] __read_mostly;
static inline u_int8_t instance_hashfn(u_int16_t queue_num)
{