Message ID | 1367220392-17496-3-git-send-email-amwang@redhat.com |
---|---|
State | Changes Requested, archived |
Delegated to: | David Miller |
Headers | show |
On Mon, Apr 29, 2013 at 03:26:32PM +0800, Cong Wang wrote: > From: Cong Wang <amwang@redhat.com> > > Continue sending queries when leave is received if the user marks > it as a querier. If we're going to send a query on leave it should be group-specific and not general. Thanks,
On Mon, 2013-04-29 at 15:43 +0800, Herbert Xu wrote: > On Mon, Apr 29, 2013 at 03:26:32PM +0800, Cong Wang wrote: > > From: Cong Wang <amwang@redhat.com> > > > > Continue sending queries when leave is received if the user marks > > it as a querier. > > If we're going to send a query on leave it should be group-specific > and not general. > Right, I will fix it. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index a821a4e..03a8f2b 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -1246,6 +1246,17 @@ static void br_multicast_leave_group(struct net_bridge *br, if (!mp) goto out; + if (br->multicast_querier) { + mod_timer(&br->multicast_query_timer, jiffies); + list_for_each_entry(port, &br->port_list, list) { + if (port->state == BR_STATE_DISABLED || + port->state == BR_STATE_BLOCKING) + continue; + + __br_multicast_enable_port(port); + } + } + if (port && (port->flags & BR_MULTICAST_FAST_LEAVE)) { struct net_bridge_port_group __rcu **pp;