summaryrefslogtreecommitdiffstats
path: root/net/ipv4/netfilter/ip_queue.c
diff options
context:
space:
mode:
authorBrian Haley2006-09-20 21:03:46 +0200
committerDavid S. Miller2006-09-23 00:19:58 +0200
commit1192e403e9ea2dc23bbbe2b4fe9bdbc47e8c6056 (patch)
tree5554ab529123500558637dc39cf14247e02a41cc /net/ipv4/netfilter/ip_queue.c
parent[NETFILTER]: TCP conntrack: improve dead connection detection (diff)
downloadkernel-qcow2-linux-1192e403e9ea2dc23bbbe2b4fe9bdbc47e8c6056.tar.gz
kernel-qcow2-linux-1192e403e9ea2dc23bbbe2b4fe9bdbc47e8c6056.tar.xz
kernel-qcow2-linux-1192e403e9ea2dc23bbbe2b4fe9bdbc47e8c6056.zip
[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/ipv4/netfilter/ip_queue.c')
-rw-r--r--net/ipv4/netfilter/ip_queue.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/netfilter/ip_queue.c b/net/ipv4/netfilter/ip_queue.c
index 80060cbe4a07..7edad790478a 100644
--- a/net/ipv4/netfilter/ip_queue.c
+++ b/net/ipv4/netfilter/ip_queue.c
@@ -52,15 +52,15 @@ struct ipq_queue_entry {
typedef int (*ipq_cmpfn)(struct ipq_queue_entry *, unsigned long);
-static unsigned char copy_mode = IPQ_COPY_NONE;
+static unsigned char copy_mode __read_mostly = IPQ_COPY_NONE;
static unsigned int queue_maxlen __read_mostly = IPQ_QMAX_DEFAULT;
static DEFINE_RWLOCK(queue_lock);
-static int peer_pid;
-static unsigned int copy_range;
+static int peer_pid __read_mostly;
+static unsigned int copy_range __read_mostly;
static unsigned int queue_total;
static unsigned int queue_dropped = 0;
static unsigned int queue_user_dropped = 0;
-static struct sock *ipqnl;
+static struct sock *ipqnl __read_mostly;
static LIST_HEAD(queue_list);
static DEFINE_MUTEX(ipqnl_mutex);