summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tunnel4.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-08-30 07:04:14 +0000
committerDavid S. Miller <davem@davemloft.net>2010-08-30 13:50:45 -0700
commit6dcd814bd08bc7989f7f3eac9bbe8b20aec0182a (patch)
treee8fcde2ef93efa62437aff893477098a1bf8b6a0 /net/ipv4/tunnel4.c
parentc274f29120eff7852bb2370ae6f05f46de75edbc (diff)
downloadop-kernel-dev-6dcd814bd08bc7989f7f3eac9bbe8b20aec0182a.zip
op-kernel-dev-6dcd814bd08bc7989f7f3eac9bbe8b20aec0182a.tar.gz
net: struct xfrm_tunnel in read_mostly section
tunnel4_handlers chain being scanned for each incoming packet, make sure it doesnt share an often dirtied cache line. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tunnel4.c')
-rw-r--r--net/ipv4/tunnel4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tunnel4.c b/net/ipv4/tunnel4.c
index 59186ca..942f02d 100644
--- a/net/ipv4/tunnel4.c
+++ b/net/ipv4/tunnel4.c
@@ -14,8 +14,8 @@
#include <net/protocol.h>
#include <net/xfrm.h>
-static struct xfrm_tunnel *tunnel4_handlers;
-static struct xfrm_tunnel *tunnel64_handlers;
+static struct xfrm_tunnel *tunnel4_handlers __read_mostly;
+static struct xfrm_tunnel *tunnel64_handlers __read_mostly;
static DEFINE_MUTEX(tunnel4_mutex);
static inline struct xfrm_tunnel **fam_handlers(unsigned short family)
OpenPOWER on IntegriCloud