* [PATCH net v2] bridge: multicast: restore router configuration on port link down/up
@ 2015-06-19 8:22 Nikolay Aleksandrov
2015-06-23 10:30 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Nikolay Aleksandrov @ 2015-06-19 8:22 UTC (permalink / raw)
To: netdev; +Cc: davem, stephen, herbert, sashok, Nikolay Aleksandrov
From: Satish Ashok <sashok@cumulusnetworks.com>
When a port goes through a link down/up the multicast router configuration
is not restored.
Signed-off-by: Satish Ashok <sashok@cumulusnetworks.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Fixes: 0909e11758bd ("bridge: Add multicast_router sysfs entries")
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
---
v2: Added the acked-by and sent as a separate patch. I plan to repurpose
the second patch for net-next, they weren't dependent anyway.
net/bridge/br_multicast.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c
index ff667e18b2d6..761fc733bf6d 100644
--- a/net/bridge/br_multicast.c
+++ b/net/bridge/br_multicast.c
@@ -37,6 +37,8 @@
static void br_multicast_start_querier(struct net_bridge *br,
struct bridge_mcast_own_query *query);
+static void br_multicast_add_router(struct net_bridge *br,
+ struct net_bridge_port *port);
unsigned int br_mdb_rehash_seq;
static inline int br_ip_equal(const struct br_ip *a, const struct br_ip *b)
@@ -936,6 +938,8 @@ void br_multicast_enable_port(struct net_bridge_port *port)
#if IS_ENABLED(CONFIG_IPV6)
br_multicast_enable(&port->ip6_own_query);
#endif
+ if (port->multicast_router == 2 && hlist_unhashed(&port->rlist))
+ br_multicast_add_router(br, port);
out:
spin_unlock(&br->multicast_lock);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net v2] bridge: multicast: restore router configuration on port link down/up
2015-06-19 8:22 [PATCH net v2] bridge: multicast: restore router configuration on port link down/up Nikolay Aleksandrov
@ 2015-06-23 10:30 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-06-23 10:30 UTC (permalink / raw)
To: nikolay; +Cc: netdev, stephen, herbert, sashok
From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Date: Fri, 19 Jun 2015 01:22:57 -0700
> From: Satish Ashok <sashok@cumulusnetworks.com>
>
> When a port goes through a link down/up the multicast router configuration
> is not restored.
>
> Signed-off-by: Satish Ashok <sashok@cumulusnetworks.com>
> Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
> Fixes: 0909e11758bd ("bridge: Add multicast_router sysfs entries")
> Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
> ---
> v2: Added the acked-by and sent as a separate patch. I plan to repurpose
> the second patch for net-next, they weren't dependent anyway.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-23 10:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-19 8:22 [PATCH net v2] bridge: multicast: restore router configuration on port link down/up Nikolay Aleksandrov
2015-06-23 10:30 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).