net/mlx5e: Fix SWP offsets when vlan inserted by driver
authorMoshe Shemesh <moshe@mellanox.com>
Fri, 13 Nov 2020 04:06:28 +0000 (06:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jan 2021 19:18:25 +0000 (20:18 +0100)
commit00a6b090d5c9eab1faf01077bc39093032eaf482
tree57bbf15316869407eb3002942fdb8b8f7fa80b02
parenta3601005de8fe0b9485f5203ea4dd2fb5b08cafd
net/mlx5e: Fix SWP offsets when vlan inserted by driver

commit b544011f0e58ce43c40105468d6dc67f980a0c7a upstream.

In case WQE includes inline header the vlan is inserted by driver even
if vlan offload is set. On geneve over vlan interface where software
parser is used the SWP offsets should be updated according to the added
vlan.

Fixes: e3cfc7e6b7bd ("net/mlx5e: TX, Add geneve tunnel stateless offload support")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h
drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c