net: dsa: b53: Ensure the default VID is untagged
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 14 Feb 2020 23:26:19 +0000 (15:26 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2020 13:14:52 +0000 (14:14 +0100)
commit5de4ba41578a0b16667ea034487bbe8a87a8bf3c
tree3f1516759f2bb84c96a79183a6f8fe9d681021e8
parentcf99e2442bac74d62d505f403eb50bbb7a37eec8
net: dsa: b53: Ensure the default VID is untagged

[ Upstream commit d965a5432d4c3e6b9c3d2bc1d4a800013bbf76f6 ]

We need to ensure that the default VID is untagged otherwise the switch
will be sending tagged frames and the results can be problematic. This
is especially true with b53 switches that use VID 0 as their default
VLAN since VID 0 has a special meaning.

Fixes: fea83353177a ("net: dsa: b53: Fix default VLAN ID")
Fixes: 061f6a505ac3 ("net: dsa: Add ndo_vlan_rx_{add, kill}_vid implementation")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/dsa/b53/b53_common.c