]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit7470558240330f04dbf940430813233935314f78
treea4511aa2b8d6ab942a55f2f78f967e9c00fe5468
parente0f9956a3862b32ad73869a8e52a33c84aafa46f
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: 085b53c8beab ("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