Thread (21 messages) 21 messages, 3 authors, 2025-02-11

Re: [PATCH v6 net-next 05/14] bridge: Add filling forward path from port to port

From: Nikolay Aleksandrov <razor@blackwall.org>
Date: 2025-02-11 16:00:10
Also in: bridge, linux-arm-kernel, linux-mediatek, lkml, netfilter-devel

On 2/11/25 15:28, Vladimir Oltean wrote:
On Sun, Feb 09, 2025 at 12:10:25PM +0100, Eric Woudstra wrote:
quoted
@@ -1453,7 +1454,10 @@ void br_vlan_fill_forward_path_pvid(struct net_bridge *br,
 	if (!br_opt_get(br, BROPT_VLAN_ENABLED))
 		return;
 
-	vg = br_vlan_group(br);
+	if (p)
+		vg = nbp_vlan_group(p);
+	else
+		vg = br_vlan_group(br);
 
 	if (idx >= 0 &&
 	    ctx->vlan[idx].proto == br->vlan_proto) {
I think the original usage of br_vlan_group() here was incorrect, and so
is the new usage of nbp_vlan_group(). They should be br_vlan_group_rcu()
and nbp_vlan_group_rcu().
Oops, right. Nice catch!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help