]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit71dc9582215a3a5e1a9b99101aa6a27d4773fc31
tree9a4f9befaf093a3b7a27ac44c258f218439f2f13
parente23a163fe3c3fae051703d44841461e8c9437e6d
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: 87815578d497 ("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