]> 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)
commit275ab0a01fd6b671861bd2ef884ea44fb1f70ece
treeef6109a02a1a0c5b01cefb526f4eb7e33b0de8ff
parentb8634a5b11e572fd3708ac720096ab064cdf1fc6
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