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)
commite87e4b5caa5db4ab14508e75ec5926a1c05020ac
treeaa1930c74509ab9209fc64be7094927ebc415034
parentc9739016a03244e32f48c7f01176cd3b6ac1d916
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