gre: Net namespace identifiers are read_mostly.
authorJesse Gross <jesse@nicira.com>
Wed, 3 Feb 2010 00:01:49 +0000 (19:01 -0500)
committerJesse Gross <jesse@nicira.com>
Thu, 4 Feb 2010 21:08:48 +0000 (16:08 -0500)
Ports commit f99189 "netns: net_identifiers should be read_mostly"
from the mainline kernel.

datapath/linux-2.6/compat-2.6/ip_gre.c

index 2f1a9adbeb78f201dc25d2611fde59e906b97da5..9a7ea96f120eb40ec7746208fd2f85fc52ef45ac 100644 (file)
@@ -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];