diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2010-02-28 03:49:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-28 03:49:38 -0500 |
commit | 3fe2d7c70b747d5d968f4e8fa210676d49d40059 (patch) | |
tree | f401e1089a3c114db7bcc6b1425433c906d560fb /net/bridge/br_if.c | |
parent | 5cb5e947d8f82011e3d7e7017e9d10db9a40ae9f (diff) |
bridge: Add multicast start/stop hooks
This patch hooks up the bridge start/stop and add/delete/disable
port functions to the new multicast module.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_if.c')
-rw-r--r-- | net/bridge/br_if.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index bc2b1badab88..b6a3872f5681 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c | |||
@@ -147,6 +147,8 @@ static void del_nbp(struct net_bridge_port *p) | |||
147 | 147 | ||
148 | rcu_assign_pointer(dev->br_port, NULL); | 148 | rcu_assign_pointer(dev->br_port, NULL); |
149 | 149 | ||
150 | br_multicast_del_port(p); | ||
151 | |||
150 | kobject_uevent(&p->kobj, KOBJ_REMOVE); | 152 | kobject_uevent(&p->kobj, KOBJ_REMOVE); |
151 | kobject_del(&p->kobj); | 153 | kobject_del(&p->kobj); |
152 | 154 | ||
@@ -207,6 +209,7 @@ static struct net_device *new_bridge_dev(struct net *net, const char *name) | |||
207 | br_netfilter_rtable_init(br); | 209 | br_netfilter_rtable_init(br); |
208 | 210 | ||
209 | br_stp_timer_init(br); | 211 | br_stp_timer_init(br); |
212 | br_multicast_init(br); | ||
210 | 213 | ||
211 | return dev; | 214 | return dev; |
212 | } | 215 | } |
@@ -258,6 +261,7 @@ static struct net_bridge_port *new_nbp(struct net_bridge *br, | |||
258 | br_init_port(p); | 261 | br_init_port(p); |
259 | p->state = BR_STATE_DISABLED; | 262 | p->state = BR_STATE_DISABLED; |
260 | br_stp_port_timer_init(p); | 263 | br_stp_port_timer_init(p); |
264 | br_multicast_add_port(p); | ||
261 | 265 | ||
262 | return p; | 266 | return p; |
263 | } | 267 | } |