]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Replace TC VLAN pop with VLAN 0 rewrite in prio tag mode
authorEli Britstein <elibr@mellanox.com>
Mon, 4 Mar 2019 13:50:38 +0000 (13:50 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 1 May 2019 21:39:15 +0000 (14:39 -0700)
commit715167e9547ab770f6c72f703bf5f35048ed7c13
tree498af6a57e92aa9b868542ecd702f69132d282ca
parentfadf869da879c51ee51441f89093834245dd86dd
net/mlx5e: Replace TC VLAN pop with VLAN 0 rewrite in prio tag mode

Current ConnectX HW is unable to perform VLAN pop in TX path and VLAN
push on RX path. To workaround that limitation untagged packets are
tagged with VLAN ID 0x000 (priority tag) and pop/push actions are
replaced by VLAN re-write actions (which are supported by the HW).
Replace TC VLAN pop action with a VLAN priority tag header rewrite.

Signed-off-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Oz Shlomo <ozsh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c