]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: rtl8366: Properly clear member config
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 5 Sep 2020 10:32:33 +0000 (12:32 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sun, 6 Sep 2020 19:32:07 +0000 (12:32 -0700)
commit62347e3fffa1fc8f4c933dbf4bb2fe8aeb190722
treecbdd6a4afa4c4539445f275cac7e94af2aff1065
parent7bc6a22e3756d30d7f69e040c7a0134190cb9540
net: dsa: rtl8366: Properly clear member config

When removing a port from a VLAN we are just erasing the
member config for the VLAN, which is wrong: other ports
can be using it.

Just mask off the port and only zero out the rest of the
member config once ports using of the VLAN are removed
from it.

Reported-by: Florian Fainelli <f.fainelli@gmail.com>
Fixes: c737e2a37ab7 ("net: dsa: realtek-smi: Add Realtek SMI driver")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/rtl8366.c