]> 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)
commite63670e97680848c3dfd9b412572cc5cd117f1fc
tree9917a7c974455cc030fbc8464a538a4705dd4201
parent825c43727c48281b54a776d918b4c50e8fc7d9c5
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