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

committed by
David S. Miller

parent
6dcd814bd0
commit
3ff2cfa55f
@@ -317,13 +317,13 @@ static const struct xfrm_type xfrm6_tunnel_type = {
|
||||
.output = xfrm6_tunnel_output,
|
||||
};
|
||||
|
||||
static struct xfrm6_tunnel xfrm6_tunnel_handler = {
|
||||
static struct xfrm6_tunnel xfrm6_tunnel_handler __read_mostly = {
|
||||
.handler = xfrm6_tunnel_rcv,
|
||||
.err_handler = xfrm6_tunnel_err,
|
||||
.priority = 2,
|
||||
};
|
||||
|
||||
static struct xfrm6_tunnel xfrm46_tunnel_handler = {
|
||||
static struct xfrm6_tunnel xfrm46_tunnel_handler __read_mostly = {
|
||||
.handler = xfrm6_tunnel_rcv,
|
||||
.err_handler = xfrm6_tunnel_err,
|
||||
.priority = 2,
|
||||
|
Reference in New Issue
Block a user