mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
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: 7b54aaaf53
("net: bridge: multicast: add vlan state initialization and control")
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2cb594240b
commit
b92dace38f
@ -694,6 +694,7 @@ static int br_vlan_add_existing(struct net_bridge *br,
|
||||
vlan->flags |= BRIDGE_VLAN_INFO_BRENTRY;
|
||||
vg->num_vlans++;
|
||||
*changed = true;
|
||||
br_multicast_toggle_one_vlan(vlan, true);
|
||||
}
|
||||
|
||||
if (__vlan_add_flags(vlan, flags))
|
||||
|
Loading…
Reference in New Issue
Block a user