Skip to content

Commit 739b927

Browse files
Linus Walleijgregkh
authored andcommitted
net: dsa: rtl8366: Fix a bug in deleting VLANs
[ Upstream commit d8251b9 ] We were checking that the MC (member config) was != 0 for some reason, all we need to check is that the config has no ports, i.e. no members. Then it can be recycled. This must be some misunderstanding. Fixes: 4ddcaf1 ("net: dsa: rtl8366: Properly clear member config") Cc: Mauri Sandberg <sandberg@mailfence.com> Cc: DENG Qingfang <dqfext@gmail.com> Reviewed-by: Alvin Šipraga <alsi@bang-olufsen.dk> Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 57e4d98 commit 739b927

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/dsa/rtl8366.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ int rtl8366_vlan_del(struct dsa_switch *ds, int port,
457457
* anymore then clear the whole member
458458
* config so it can be reused.
459459
*/
460-
if (!vlanmc.member && vlanmc.untag) {
460+
if (!vlanmc.member) {
461461
vlanmc.vid = 0;
462462
vlanmc.priority = 0;
463463
vlanmc.fid = 0;

0 commit comments

Comments
 (0)