summaryrefslogtreecommitdiffstats
path: root/net/ipv6/tunnel6.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-08-30 10:27:10 +0000
committerDavid S. Miller <davem@davemloft.net>2010-08-30 13:50:46 -0700
commit3ff2cfa55fb35bb5ea4490fbc82bb3c6771c121b (patch)
tree4f67088e323cd49b6748e15fba8951eabb80c308 /net/ipv6/tunnel6.c
parent6dcd814bd08bc7989f7f3eac9bbe8b20aec0182a (diff)
downloadlinux-stable-3ff2cfa55fb35bb5ea4490fbc82bb3c6771c121b.tar.gz
linux-stable-3ff2cfa55fb35bb5ea4490fbc82bb3c6771c121b.tar.bz2
linux-stable-3ff2cfa55fb35bb5ea4490fbc82bb3c6771c121b.zip
ipv6: struct xfrm6_tunnel in read_mostly section
tunnel6_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/ipv6/tunnel6.c')
-rw-r--r--net/ipv6/tunnel6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/tunnel6.c b/net/ipv6/tunnel6.c
index fc3c86a47452..d203e6df1f8b 100644
--- a/net/ipv6/tunnel6.c
+++ b/net/ipv6/tunnel6.c
@@ -30,8 +30,8 @@
#include <net/protocol.h>
#include <net/xfrm.h>
-static struct xfrm6_tunnel *tunnel6_handlers;
-static struct xfrm6_tunnel *tunnel46_handlers;
+static struct xfrm6_tunnel *tunnel6_handlers __read_mostly;
+static struct xfrm6_tunnel *tunnel46_handlers __read_mostly;
static DEFINE_MUTEX(tunnel6_mutex);
int xfrm6_tunnel_register(struct xfrm6_tunnel *handler, unsigned short family)