OSDN Git Service

net/mlx5: DR, Avoid unnecessary csum recalculation on supporting devices
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Wed, 28 Oct 2020 23:35:47 +0000 (01:35 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 2 Feb 2021 06:52:36 +0000 (22:52 -0800)
commita283ea1b97163d21e0f1a3df387b71787042b990
tree1bcab9f4846a495ce5fb6afc5e8bf62a49e4fbb8
parent902c02458925c49062984b7cfe746410321b6a0b
net/mlx5: DR, Avoid unnecessary csum recalculation on supporting devices

If as part of the actions the TTL of the packet is modified, the packet's
checksum needs to be recalculated. Connect-X6DX can handle this csum
recalculation natively. Older devices require this additional recalculation.

Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h