linux/drivers/staging/fsl-dpaa2
Razvan Stefanescu 593c9c7c90 staging: fsl-dpaa2/ethsw: Fix tag control information value overwrite
The tag control information (TCI) part of the VLAN header contains several
fields, including PCP (priority code point) and PVID (port VLAN id).

Current implementation uses function ethsw_port_set_tci() to set the PVID
value and mistakenly overwrites the rest of the TCI fields with 0,
including PCP which by default has a value of 7.

Fix this by adding support to retrieve TCI set in hardware. Read existing
value and only updated the PVID fields, leaving others unchanged.

Signed-off-by: Razvan Stefanescu <razvan.stefanescu@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-23 10:49:14 +02:00
..
ethernet staging: fsl-dpaa2/eth: Use debug level for message 2018-03-23 16:42:27 +01:00
ethsw staging: fsl-dpaa2/ethsw: Fix tag control information value overwrite 2018-04-23 10:49:14 +02:00
Kconfig staging: fsl-dpaa2/ethsw: Add APIs for DPSW object 2018-03-14 17:36:09 +01:00
Makefile staging: fsl-dpaa2/ethsw: Add APIs for DPSW object 2018-03-14 17:36:09 +01:00