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

Re: [PATCH net-next v2 14/14] net: bridge: mcast: add inactive state assertions

From: Ido Schimmel <idosch@nvidia.com>
Date: 2026-02-08 16:13:31
Also in: bridge, lkml

On Fri, Feb 06, 2026 at 03:52:20AM +0100, Linus Lüssing wrote:
quoted hunk ↗ jump to hunk
@@ -1418,10 +1418,29 @@ static struct sk_buff *br_multicast_alloc_query(struct net_bridge_mcast *brmctx,
 	return NULL;
 }
 
+static void br_ip4_multicast_assert_inactive(struct net_bridge_mcast *brmctx)
+{
+	WARN_ON(br_multicast_snooping_active(brmctx, htons(ETH_P_IP), NULL));
Can't this be WARN_ON_ONCE()? If something is actually wrong, WARN_ON()
has the potential to flood the kernel log
+}
+
+static void br_ip6_multicast_assert_inactive(struct net_bridge_mcast *brmctx)
+{
+	WARN_ON(br_multicast_snooping_active(brmctx, htons(ETH_P_IPV6), NULL));
Same
+}
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help