]> 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)
commite3a567eda6e21fc639c082a962e9f9605dc5bd77
treea4511aa2b8d6ab942a55f2f78f967e9c00fe5468
parent1998b6df28bd2787ddf882d9fdbbef3de3350117
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: f410f15f9f33 ("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