From: Jesse Gross <jesse@nicira.com>
Date: Wed, 3 Feb 2010 00:01:49 +0000 (-0500)
Subject: gre: Net namespace identifiers are read_mostly.
X-Git-Tag: v1.0.0~259^2~187^2~1
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=e19702a8016df476e8fa476f92d8177257aac0ad;p=sliver-openvswitch.git

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 2f1a9adbe..9a7ea96f1 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];