]> 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)
commit36c605731695c78672730350c5083655fe59a1d7
treeaa1930c74509ab9209fc64be7094927ebc415034
parente8c739ce120bed1ceeb53cda7cf6524ced7d8d11
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