diff options
author | Brian Haley <brian.haley@hp.com> | 2006-09-20 15:03:46 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 18:19:58 -0400 |
commit | 1192e403e9ea2dc23bbbe2b4fe9bdbc47e8c6056 (patch) | |
tree | 5554ab529123500558637dc39cf14247e02a41cc /net/ipv6 | |
parent | c1fe3ca5106d9568791433fa6c7f27e71ac69e1b (diff) |
[NETFILTER]: make some netfilter globals __read_mostly
Signed-off-by: Brian Haley <brian.haley@hp.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/netfilter/ip6_queue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv6/netfilter/ip6_queue.c b/net/ipv6/netfilter/ip6_queue.c index d322e8395794..9510c24ca8d2 100644 --- a/net/ipv6/netfilter/ip6_queue.c +++ b/net/ipv6/netfilter/ip6_queue.c | |||
@@ -56,15 +56,15 @@ struct ipq_queue_entry { | |||
56 | 56 | ||
57 | typedef int (*ipq_cmpfn)(struct ipq_queue_entry *, unsigned long); | 57 | typedef int (*ipq_cmpfn)(struct ipq_queue_entry *, unsigned long); |
58 | 58 | ||
59 | static unsigned char copy_mode = IPQ_COPY_NONE; | 59 | static unsigned char copy_mode __read_mostly = IPQ_COPY_NONE; |
60 | static unsigned int queue_maxlen __read_mostly = IPQ_QMAX_DEFAULT; | 60 | static unsigned int queue_maxlen __read_mostly = IPQ_QMAX_DEFAULT; |
61 | static DEFINE_RWLOCK(queue_lock); | 61 | static DEFINE_RWLOCK(queue_lock); |
62 | static int peer_pid; | 62 | static int peer_pid __read_mostly; |
63 | static unsigned int copy_range; | 63 | static unsigned int copy_range __read_mostly; |
64 | static unsigned int queue_total; | 64 | static unsigned int queue_total; |
65 | static unsigned int queue_dropped = 0; | 65 | static unsigned int queue_dropped = 0; |
66 | static unsigned int queue_user_dropped = 0; | 66 | static unsigned int queue_user_dropped = 0; |
67 | static struct sock *ipqnl; | 67 | static struct sock *ipqnl __read_mostly; |
68 | static LIST_HEAD(queue_list); | 68 | static LIST_HEAD(queue_list); |
69 | static DEFINE_MUTEX(ipqnl_mutex); | 69 | static DEFINE_MUTEX(ipqnl_mutex); |
70 | 70 | ||