]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: IPSEC RX, enable checksum complete
authorRaed Salem <raeds@nvidia.com>
Thu, 26 Aug 2021 14:07:17 +0000 (17:07 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 30 Sep 2021 21:07:54 +0000 (14:07 -0700)
commit9ce3e69c57ac4bf31ea4bb2b5411cb86d28147ee
tree314dfda39af2598562569fb352d96ae02eba62e8
parentd0e8c8c9f6075dd2477690cf94762435a56bf594
net/mlx5e: IPSEC RX, enable checksum complete

Currently in Rx data path IPsec crypto offloaded packets uses
csum_none flag, so checksum is handled by the stack, this naturally
have some performance/cpu utilization impact on such flows. As Nvidia
NIC starting from ConnectX6DX provides checksum complete value out of
the box also for such flows there is no sense in taking csum_none path,
furthermore the stack (xfrm) have the method to handle checksum complete
corrections for such flows i.e. IPsec trailer removal and consequently
checksum value adjustment.

Because of the above and in addition the ConnectX6DX is the first HW
which supports IPsec crypto offload then it is safe to report csum
complete for IPsec offloaded traffic.

Fixes: fb007eec573f ("net/mlx5e: IPsec: Add Connect-X IPsec Rx data path offload")
Signed-off-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c