]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: mcast: fix br_multicast_ctx_vlan_global_disabled helper
authorNikolay Aleksandrov <nikolay@nvidia.com>
Tue, 28 Dec 2021 15:31:42 +0000 (17:31 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Dec 2021 01:49:45 +0000 (17:49 -0800)
commit5a0153c11362e083bd81b1147d7d76fb85e64029
tree559d70617e072067cb48073d22dd99a6b87f0339
parent715b32ae498f7c0655fcabe4cdbdaa3739739a5a
net: bridge: mcast: fix br_multicast_ctx_vlan_global_disabled helper

We need to first check if the context is a vlan one, then we need to
check the global bridge multicast vlan snooping flag, and finally the
vlan's multicast flag, otherwise we will unnecessarily enable vlan mcast
processing (e.g. querier timers).

Fixes: 28d9f8f6c6d5 ("net: bridge: multicast: add vlan state initialization and control")
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Link: https://lore.kernel.org/r/20211228153142.536969-1-nikolay@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_private.h