]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: multicast: add mdb context support
authorNikolay Aleksandrov <nikolay@nvidia.com>
Wed, 21 Jul 2021 14:01:26 +0000 (17:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Jul 2021 21:34:47 +0000 (14:34 -0700)
commitc5312000940b16c1b58375364586f46fbc34830b
treeef6109a02a1a0c5b01cefb526f4eb7e33b0de8ff
parent0cdf655787dfb68cdf85f2a1a81012af8c3208b6
net: bridge: multicast: add mdb context support

Choose the proper bridge multicast context when user-spaces is adding
mdb entries. Currently we require the vlan to be configured on at least
one device (port or bridge) in order to add an mdb entry if vlan
mcast snooping is enabled (vlan snooping implies vlan filtering).
Note that we always allow deleting an entry, regardless of the vlan state.

Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_mdb.c