]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: ksz8795: Use software untagging on CPU port
authorBen Hutchings <ben.hutchings@mind.be>
Mon, 9 Aug 2021 22:59:57 +0000 (00:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Aug 2021 08:58:15 +0000 (09:58 +0100)
commit1eddaec532ff8275ab49c3e49de28824d7bd7e7d
tree5987ec85b52f2236dcfd9ae4fdbb3c7c38457eb7
parente346bc7e9ab89e61e24f0982b9efaa2f5f31c780
net: dsa: microchip: ksz8795: Use software untagging on CPU port

On the CPU port, we can support both tagged and untagged VLANs at the
same time by doing any necessary untagging in software rather than
hardware.  To enable that, keep the CPU port's Remove Tag flag cleared
and set the dsa_switch::untag_bridge_pvid flag.

Fixes: f43f531406fa ("net: dsa: ksz: Add Microchip KSZ8795 DSA driver")
Signed-off-by: Ben Hutchings <ben.hutchings@mind.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz8795.c