Skip to content

Commit b92dace

Browse files
Nikolay Aleksandrovdavem330
authored andcommitted
net: bridge: vlan: enable mcast snooping for existing master vlans
We always create a vlan with enabled mcast snooping, so when the user turns on per-vlan mcast contexts they'll get consistent behaviour with the current situation, but one place wasn't updated when a bridge/master vlan which already exists (created due to port vlans) is being added as real bridge vlan (BRIDGE_VLAN_INFO_BRENTRY). We need to enable mcast snooping for that vlan when that happens. Fixes: 7b54aaa ("net: bridge: multicast: add vlan state initialization and control") Signed-off-by: Nikolay Aleksandrov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2cb5942 commit b92dace

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/bridge/br_vlan.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ static int br_vlan_add_existing(struct net_bridge *br,
694694
vlan->flags |= BRIDGE_VLAN_INFO_BRENTRY;
695695
vg->num_vlans++;
696696
*changed = true;
697+
br_multicast_toggle_one_vlan(vlan, true);
697698
}
698699

699700
if (__vlan_add_flags(vlan, flags))

0 commit comments

Comments
 (0)