]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: multicast: handle block pg delete for all cases
authorNikolay Aleksandrov <nikolay@nvidia.com>
Wed, 20 Jan 2021 14:52:02 +0000 (16:52 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 23 Jan 2021 03:39:57 +0000 (19:39 -0800)
commit6665a8c20bfa8b2677edb1560eba1a131a7f6ef8
treeaa1930c74509ab9209fc64be7094927ebc415034
parent7b81ea3d36e5d920933ef1f33810f9eb2956ba18
net: bridge: multicast: handle block pg delete for all cases

A block report can result in empty source and host sets for both include
and exclude groups so if there are no hosts left we can safely remove
the group. Pull the block group handling so it can cover both cases and
add a check if EHT requires the delete.

Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_multicast.c