netns: net_identifiers should be read_mostly
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
615534bc49
commit
f99189b186
@@ -125,7 +125,7 @@ static int ipgre_tunnel_bind_dev(struct net_device *dev);
|
||||
|
||||
#define HASH_SIZE 16
|
||||
|
||||
static int ipgre_net_id;
|
||||
static int ipgre_net_id __read_mostly;
|
||||
struct ipgre_net {
|
||||
struct ip_tunnel *tunnels[4][HASH_SIZE];
|
||||
|
||||
|
@@ -119,7 +119,7 @@
|
||||
#define HASH_SIZE 16
|
||||
#define HASH(addr) (((__force u32)addr^((__force u32)addr>>4))&0xF)
|
||||
|
||||
static int ipip_net_id;
|
||||
static int ipip_net_id __read_mostly;
|
||||
struct ipip_net {
|
||||
struct ip_tunnel *tunnels_r_l[HASH_SIZE];
|
||||
struct ip_tunnel *tunnels_r[HASH_SIZE];
|
||||
|
Reference in New Issue
Block a user