diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-08-30 10:27:10 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-30 13:50:46 -0700 |
commit | 3ff2cfa55fb35bb5ea4490fbc82bb3c6771c121b (patch) | |
tree | 4f67088e323cd49b6748e15fba8951eabb80c308 /net/ipv6/tunnel6.c | |
parent | 6dcd814bd08bc7989f7f3eac9bbe8b20aec0182a (diff) | |
download | op-kernel-dev-3ff2cfa55fb35bb5ea4490fbc82bb3c6771c121b.zip op-kernel-dev-3ff2cfa55fb35bb5ea4490fbc82bb3c6771c121b.tar.gz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/tunnel6.c b/net/ipv6/tunnel6.c index fc3c86a..d203e6d 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) |