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>
This commit is contained in:

committed by
David S. Miller

parent
c274f29120
commit
6dcd814bd0
@@ -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,
|
||||
|
Reference in New Issue
Block a user