diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-08-30 07:04:14 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-30 13:50:45 -0700 |
commit | 6dcd814bd08bc7989f7f3eac9bbe8b20aec0182a (patch) | |
tree | e8fcde2ef93efa62437aff893477098a1bf8b6a0 /net/ipv4/ipip.c | |
parent | c274f29120eff7852bb2370ae6f05f46de75edbc (diff) | |
download | linux-6dcd814bd08bc7989f7f3eac9bbe8b20aec0182a.tar.bz2 |
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/ipip.c')
-rw-r--r-- | net/ipv4/ipip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c index ec036731a70b..3c6f8f3968a6 100644 --- a/net/ipv4/ipip.c +++ b/net/ipv4/ipip.c @@ -744,7 +744,7 @@ static void __net_init ipip_fb_tunnel_init(struct net_device *dev) ipn->tunnels_wc[0] = tunnel; } -static struct xfrm_tunnel ipip_handler = { +static struct xfrm_tunnel ipip_handler __read_mostly = { .handler = ipip_rcv, .err_handler = ipip_err, .priority = 1, |