]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: write full VLAN TCI in the injection header
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 1 Oct 2021 15:15:27 +0000 (18:15 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Oct 2021 13:15:57 +0000 (14:15 +0100)
commitdd411f935bb559ad0b2f2dea667350027eee0587
tree9917a7c974455cc030fbc8464a538a4705dd4201
parentc24f543e03c1b7998ef4f280f23845c2353f4986
net: mscc: ocelot: write full VLAN TCI in the injection header

The VLAN TCI contains more than the VLAN ID, it also has the VLAN PCP
and Drop Eligibility Indicator.

If the ocelot driver is going to write the VLAN header inside the DSA
tag, it could just as well write the entire TCI.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c
include/linux/dsa/ocelot.h