OSDN Git Service

net: dsa: mv88e6xxx: Fix adding vlan 0
authorEldar Gasanov <eldargasanov2@gmail.com>
Mon, 21 Jun 2021 08:54:38 +0000 (11:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jun 2021 21:45:42 +0000 (14:45 -0700)
commitb8b79c414eca4e9bcab645e02cb92c48db974ce9
tree5eb5f9c9b6046179533815d7f3c40db3eef21d53
parentc7ff9cff70601ea19245d997bb977344663434c7
net: dsa: mv88e6xxx: Fix adding vlan 0

8021q module adds vlan 0 to all interfaces when it starts.
When 8021q module is loaded it isn't possible to create bond
with mv88e6xxx interfaces, bonding module dipslay error
"Couldn't add bond vlan ids", because it tries to add vlan 0
to slave interfaces.

There is unexpected behavior in the switch. When a PVID
is assigned to a port the switch changes VID to PVID
in ingress frames with VID 0 on the port. Expected
that the switch doesn't assign PVID to tagged frames
with VID 0. But there isn't a way to change this behavior
in the switch.

Fixes: 57e661aae6a8 ("net: dsa: mv88e6xxx: Link aggregation support")
Signed-off-by: Eldar Gasanov <eldargasanov2@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c