Thread (7 messages) 7 messages, 3 authors, 2019-07-31

Re: [PATCH net] net: bridge: mcast: don't delete permanent entries when fast leave is enabled

From: David Ahern <hidden>
Date: 2019-07-30 13:58:07
Also in: bridge

On 7/30/19 5:21 AM, Nikolay Aleksandrov wrote:
quoted hunk ↗ jump to hunk
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c
index 3d8deac2353d..f8cac3702712 100644
--- a/net/bridge/br_multicast.c
+++ b/net/bridge/br_multicast.c
@@ -1388,6 +1388,9 @@ br_multicast_leave_group(struct net_bridge *br,
 			if (!br_port_group_equal(p, port, src))
 				continue;
 
+			if (p->flags & MDB_PG_FLAGS_PERMANENT)
+				break;
+
 			rcu_assign_pointer(*pp, p->next);
 			hlist_del_init(&p->mglist);
 			del_timer(&p->timer);
Why 'break' and not 'continue' like you have with
	if (!br_port_group_equal(p, port, src))
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help