net: bridge: mcast: toggle also host vlan state in br_multicast_toggle_vlan
authorNikolay Aleksandrov <nikolay@nvidia.com>
Mon, 16 Aug 2021 14:57:07 +0000 (17:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Aug 2021 09:37:29 +0000 (10:37 +0100)
commitaffce9a774ca2514aaa5638fde92c57a476dfd79
treeabbcb462c6bc991f2f988a4f62a43f760b18f2e4
parent3f0d14efe2fa8656a1c46f1d13d42bb5bd88f32f
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>
net/bridge/br_multicast.c
net/bridge/br_private.h