]> git.dujemihanovic.xyz Git - linux.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)
commit6567cb438a51016f9f2152cb966f5715dc3c3c7b
treeef6109a02a1a0c5b01cefb526f4eb7e33b0de8ff
parentdabb5db17c06d25accc3c3b8417b3a0428ba0731
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