mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
net: dsa: b53: Ensure the default VID is untagged
[ Upstream commitd965a5432d] 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:fea8335317("net: dsa: b53: Fix default VLAN ID") Fixes:061f6a505a("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
cf99e2442b
commit
5de4ba4157
@@ -1165,6 +1165,9 @@ void b53_vlan_add(struct dsa_switch *ds, int port,
|
||||
|
||||
b53_get_vlan_entry(dev, vid, vl);
|
||||
|
||||
if (vid == 0 && vid == b53_default_pvid(dev))
|
||||
untagged = true;
|
||||
|
||||
vl->members |= BIT(port);
|
||||
if (untagged && !dsa_is_cpu_port(ds, port))
|
||||
vl->untag |= BIT(port);
|
||||
|
||||
Reference in New Issue
Block a user