diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-11-17 05:42:49 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-18 08:03:25 -0500 |
commit | f99189b186f3922ede4fa33c02f6edc735b8c981 (patch) | |
tree | e216447fc284d6ec98ac1550638ac3a79d71e084 /drivers | |
parent | 615534bc490606685621d63a40c0670d0f049d86 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 2 | ||||
-rw-r--r-- | drivers/net/ppp_generic.c | 2 | ||||
-rw-r--r-- | drivers/net/pppoe.c | 2 | ||||
-rw-r--r-- | drivers/net/pppol2tp.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index ecea6c294132..726bd755338f 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -158,7 +158,7 @@ MODULE_PARM_DESC(fail_over_mac, "For active-backup, do not set all slaves to the | |||
158 | static const char * const version = | 158 | static const char * const version = |
159 | DRV_DESCRIPTION ": v" DRV_VERSION " (" DRV_RELDATE ")\n"; | 159 | DRV_DESCRIPTION ": v" DRV_VERSION " (" DRV_RELDATE ")\n"; |
160 | 160 | ||
161 | int bond_net_id; | 161 | int bond_net_id __read_mostly; |
162 | 162 | ||
163 | static __be32 arp_target[BOND_MAX_ARP_TARGETS]; | 163 | static __be32 arp_target[BOND_MAX_ARP_TARGETS]; |
164 | static int arp_ip_count; | 164 | static int arp_ip_count; |
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index 965adb6174c3..0a56a778af0a 100644 --- a/drivers/net/ppp_generic.c +++ b/drivers/net/ppp_generic.c | |||
@@ -184,7 +184,7 @@ static atomic_t ppp_unit_count = ATOMIC_INIT(0); | |||
184 | static atomic_t channel_count = ATOMIC_INIT(0); | 184 | static atomic_t channel_count = ATOMIC_INIT(0); |
185 | 185 | ||
186 | /* per-net private data for this module */ | 186 | /* per-net private data for this module */ |
187 | static int ppp_net_id; | 187 | static int ppp_net_id __read_mostly; |
188 | struct ppp_net { | 188 | struct ppp_net { |
189 | /* units to ppp mapping */ | 189 | /* units to ppp mapping */ |
190 | struct idr units_idr; | 190 | struct idr units_idr; |
diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c index 60c8d233209f..a1dcba255b06 100644 --- a/drivers/net/pppoe.c +++ b/drivers/net/pppoe.c | |||
@@ -97,7 +97,7 @@ static const struct proto_ops pppoe_ops; | |||
97 | static struct ppp_channel_ops pppoe_chan_ops; | 97 | static struct ppp_channel_ops pppoe_chan_ops; |
98 | 98 | ||
99 | /* per-net private data for this module */ | 99 | /* per-net private data for this module */ |
100 | static int pppoe_net_id; | 100 | static int pppoe_net_id __read_mostly; |
101 | struct pppoe_net { | 101 | struct pppoe_net { |
102 | /* | 102 | /* |
103 | * we could use _single_ hash table for all | 103 | * we could use _single_ hash table for all |
diff --git a/drivers/net/pppol2tp.c b/drivers/net/pppol2tp.c index 849cc9c62c2a..442c382c2c85 100644 --- a/drivers/net/pppol2tp.c +++ b/drivers/net/pppol2tp.c | |||
@@ -232,7 +232,7 @@ static struct ppp_channel_ops pppol2tp_chan_ops = { pppol2tp_xmit , NULL }; | |||
232 | static const struct proto_ops pppol2tp_ops; | 232 | static const struct proto_ops pppol2tp_ops; |
233 | 233 | ||
234 | /* per-net private data for this module */ | 234 | /* per-net private data for this module */ |
235 | static int pppol2tp_net_id; | 235 | static int pppol2tp_net_id __read_mostly; |
236 | struct pppol2tp_net { | 236 | struct pppol2tp_net { |
237 | struct list_head pppol2tp_tunnel_list; | 237 | struct list_head pppol2tp_tunnel_list; |
238 | rwlock_t pppol2tp_tunnel_list_lock; | 238 | rwlock_t pppol2tp_tunnel_list_lock; |