Thread (35 messages) flat view 35 messages, 3 authors, 2026-02-11

Re: [PATCH net-next v2 03/14] net: bridge: mcast: avoid sleeping on bridge-down

From: Ido Schimmel <idosch@nvidia.com>
Date: 2026-02-08 11:41:33
Also in: bridge, lkml

On Fri, Feb 06, 2026 at 03:52:09AM +0100, Linus Lüssing wrote:
quoted hunk ↗ jump to hunk
diff --git a/net/bridge/br_device.c b/net/bridge/br_device.c
index a818fdc22da9..d9d1227d5708 100644
--- a/net/bridge/br_device.c
+++ b/net/bridge/br_device.c
@@ -168,7 +168,9 @@ static int br_dev_open(struct net_device *dev)
 	netdev_update_features(dev);
 	netif_start_queue(dev);
 	br_stp_enable_bridge(br);
+	spin_lock_bh(&br->multicast_lock);
This wouldn't work when CONFIG_BRIDGE_IGMP_SNOOPING is not set
 	br_multicast_open(br);
+	spin_unlock_bh(&br->multicast_lock);
 
 	if (br_opt_get(br, BROPT_MULTICAST_ENABLED))
 		br_multicast_join_snoopers(br);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help