aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge/br_private.h
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-11-15 01:38:10 -0500
committerDavid S. Miller <davem@davemloft.net>2010-11-15 14:13:16 -0500
commite80516880019aa1f7c5c410276edfea9575ec89f (patch)
treeb17f51f56ef97e5a366f2f5bc3020935d8eb5def /net/bridge/br_private.h
parent8a22c99a80b0926585cfcbcc423ee2c49c1fd820 (diff)
bridge: add RCU annotation to bridge multicast table
Add modern __rcu annotatations to bridge multicast table. Use newer hlist macros to avoid direct access to hlist internals. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r--net/bridge/br_private.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h
index 75c90edaf7db..b862071bf601 100644
--- a/net/bridge/br_private.h
+++ b/net/bridge/br_private.h
@@ -72,7 +72,7 @@ struct net_bridge_fdb_entry
72 72
73struct net_bridge_port_group { 73struct net_bridge_port_group {
74 struct net_bridge_port *port; 74 struct net_bridge_port *port;
75 struct net_bridge_port_group *next; 75 struct net_bridge_port_group __rcu *next;
76 struct hlist_node mglist; 76 struct hlist_node mglist;
77 struct rcu_head rcu; 77 struct rcu_head rcu;
78 struct timer_list timer; 78 struct timer_list timer;
@@ -86,7 +86,7 @@ struct net_bridge_mdb_entry
86 struct hlist_node hlist[2]; 86 struct hlist_node hlist[2];
87 struct hlist_node mglist; 87 struct hlist_node mglist;
88 struct net_bridge *br; 88 struct net_bridge *br;
89 struct net_bridge_port_group *ports; 89 struct net_bridge_port_group __rcu *ports;
90 struct rcu_head rcu; 90 struct rcu_head rcu;
91 struct timer_list timer; 91 struct timer_list timer;
92 struct timer_list query_timer; 92 struct timer_list query_timer;
@@ -227,7 +227,7 @@ struct net_bridge
227 unsigned long multicast_startup_query_interval; 227 unsigned long multicast_startup_query_interval;
228 228
229 spinlock_t multicast_lock; 229 spinlock_t multicast_lock;
230 struct net_bridge_mdb_htable *mdb; 230 struct net_bridge_mdb_htable __rcu *mdb;
231 struct hlist_head router_list; 231 struct hlist_head router_list;
232 struct hlist_head mglist; 232 struct hlist_head mglist;
233 233