From e19702a8016df476e8fa476f92d8177257aac0ad Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Tue, 2 Feb 2010 19:01:49 -0500 Subject: [PATCH] gre: Net namespace identifiers are read_mostly. Ports commit f99189 "netns: net_identifiers should be read_mostly" from the mainline kernel. --- datapath/linux-2.6/compat-2.6/ip_gre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datapath/linux-2.6/compat-2.6/ip_gre.c b/datapath/linux-2.6/compat-2.6/ip_gre.c index 2f1a9adb..9a7ea96f 100644 --- a/datapath/linux-2.6/compat-2.6/ip_gre.c +++ b/datapath/linux-2.6/compat-2.6/ip_gre.c @@ -147,7 +147,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]; -- 2.30.2