diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-08-30 14:27:10 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-31 00:50:46 +0400 |
commit | 3ff2cfa55fb35bb5ea4490fbc82bb3c6771c121b (patch) | |
tree | 4f67088e323cd49b6748e15fba8951eabb80c308 /net/ipv6/tunnel6.c | |
parent | 6dcd814bd08bc7989f7f3eac9bbe8b20aec0182a (diff) | |
download | linux-3ff2cfa55fb35bb5ea4490fbc82bb3c6771c121b.tar.xz |
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 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) |