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
@@ -14,8 +14,8 @@
|
||||
#include <net/protocol.h>
|
||||
#include <net/xfrm.h>
|
||||
|
||||
static struct xfrm_tunnel *tunnel4_handlers;
|
||||
static struct xfrm_tunnel *tunnel64_handlers;
|
||||
static struct xfrm_tunnel *tunnel4_handlers __read_mostly;
|
||||
static struct xfrm_tunnel *tunnel64_handlers __read_mostly;
|
||||
static DEFINE_MUTEX(tunnel4_mutex);
|
||||
|
||||
static inline struct xfrm_tunnel **fam_handlers(unsigned short family)
|
||||
|
Reference in New Issue
Block a user