From: Jesse Gross Date: Wed, 3 Feb 2010 00:01:49 +0000 (-0500) Subject: gre: Net namespace identifiers are read_mostly. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e19702a8016df476e8fa476f92d8177257aac0ad;p=openvswitch gre: Net namespace identifiers are read_mostly. Ports commit f99189 "netns: net_identifiers should be read_mostly" from the mainline kernel. --- 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];