net/mlx5e: FPGA, fix Innova IPsec TX offload data path performance
authorRaed Salem <raeds@mellanox.com>
Mon, 17 Dec 2018 09:40:06 +0000 (11:40 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 5 Feb 2019 20:10:19 +0000 (12:10 -0800)
commit82eaa1fa0448da1852d7b80832e67e80a08dcc27
tree9a4f9befaf093a3b7a27ac44c258f218439f2f13
parentf09bef61f1ed72869b231e5cff16e73a06505cfb
net/mlx5e: FPGA, fix Innova IPsec TX offload data path performance

At Innova IPsec TX offload data path a special software parser metadata
is used to pass some packet attributes to the hardware, this metadata
is passed using the Ethernet control segment of a WQE (a HW descriptor)
header.

The cited commit might nullify this header, hence the metadata is lost,
this caused a significant performance drop during hw offloading
operation.

Fix by restoring the metadata at the Ethernet control segment in case
it was nullified.

Fixes: 37fdffb217a4 ("net/mlx5: WQ, fixes for fragmented WQ buffers API")
Signed-off-by: Raed Salem <raeds@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c