]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: mcast: querier and query state affect only current context type
authorNikolay Aleksandrov <nikolay@nvidia.com>
Tue, 10 Aug 2021 15:29:29 +0000 (18:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Aug 2021 12:34:41 +0000 (13:34 +0100)
commitff5d8ec0e120bf173d6ef75f4b71268807234fb5
tree5f5033aa49997896d79e0aa9a484685a817c3e9f
parent698beb0240b4b3cc1fc38ccadae7373f9ffa9168
net: bridge: mcast: querier and query state affect only current context type

It is a minor optimization and better behaviour to make sure querier and
query sending routines affect only the matching multicast context
depending if vlan snooping is enabled (vlan ctx vs bridge ctx).
It also avoids sending unnecessary extra query packets.

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