]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: mcast: remove only S,G port groups from sg_port hash
authorNikolay Aleksandrov <nikolay@nvidia.com>
Fri, 25 Sep 2020 10:25:49 +0000 (13:25 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2020 23:50:19 +0000 (16:50 -0700)
commit5585cba09a93d8ae31ff55f2f2b1b837d9c98d39
treea4511aa2b8d6ab942a55f2f78f967e9c00fe5468
parent546f2c6e391b73b38f999160e17095f55f18eecb
net: bridge: mcast: remove only S,G port groups from sg_port hash

We should remove a group from the sg_port hash only if it's an S,G
entry. This makes it correct and more symmetric with group add. Also
since *,G groups are not added to that hash we can hide a bug.

Fixes: d023066239db ("net: bridge: mcast: add sg_port rhashtable")
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_multicast.c