diff options
author | Nikolay Aleksandrov <nikolay@nvidia.com> | 2021-08-16 17:57:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-17 10:37:29 +0100 |
commit | affce9a774ca2514aaa5638fde92c57a476dfd79 (patch) | |
tree | abbcb462c6bc991f2f988a4f62a43f760b18f2e4 /net/bridge/br_multicast.c | |
parent | 3f0d14efe2fa8656a1c46f1d13d42bb5bd88f32f (diff) | |
download | linux-affce9a774ca2514aaa5638fde92c57a476dfd79.tar.gz linux-affce9a774ca2514aaa5638fde92c57a476dfd79.tar.bz2 linux-affce9a774ca2514aaa5638fde92c57a476dfd79.zip |
net: bridge: mcast: toggle also host vlan state in br_multicast_toggle_vlan
When changing vlan mcast state by br_multicast_toggle_vlan it iterates
over all ports and enables/disables the port mcast ctx based on the new
state, but I forgot to update the host vlan (bridge master vlan entry)
with the new state so it will be left out. Also that function is not
used outside of br_multicast.c, so make it static.
Fixes: f4b7002a7076 ("net: bridge: add vlan mcast snooping knob")
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_multicast.c')
-rw-r--r-- | net/bridge/br_multicast.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index c9f7f56eaf9b..16e686f5b9e9 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -4074,7 +4074,7 @@ void br_multicast_toggle_one_vlan(struct net_bridge_vlan *vlan, bool on) } } -void br_multicast_toggle_vlan(struct net_bridge_vlan *vlan, bool on) +static void br_multicast_toggle_vlan(struct net_bridge_vlan *vlan, bool on) { struct net_bridge_port *p; @@ -4089,6 +4089,9 @@ void br_multicast_toggle_vlan(struct net_bridge_vlan *vlan, bool on) continue; br_multicast_toggle_one_vlan(vport, on); } + + if (br_vlan_is_brentry(vlan)) + br_multicast_toggle_one_vlan(vlan, on); } int br_multicast_toggle_vlan_snooping(struct net_bridge *br, bool on, |