]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: manage VLANs on cascade ports
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 4 Aug 2021 13:54:33 +0000 (16:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Aug 2021 10:05:48 +0000 (11:05 +0100)
commitc481024503a5bfed21ab11d67d2cc6ee0002701e
tree728eba2f303346a9d7ba15c3104dc029dffcd290
parente193edcd56e6e3327c9c22ddcf6cc564ae9754eb
net: dsa: sja1105: manage VLANs on cascade ports

Since commit 7a158919a1a5 ("net: dsa: sja1105: use 4095 as the private
VLAN for untagged traffic"), this driver uses a reserved value as pvid
for the host port (DSA CPU port). Control packets which are sent as
untagged get classified to this VLAN, and all ports are members of it
(this is to be expected for control packets).

Manage all cascade ports in the same way and allow control packets to
egress everywhere.

Also, all VLANs need to be sent as egress-tagged on all cascade ports.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c