]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: DR, Ignore modify TTL on RX if device doesn't support it
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Sun, 3 Apr 2022 20:18:10 +0000 (23:18 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 18 May 2022 06:03:53 +0000 (23:03 -0700)
commitaa102d8ed4f46fd4df6ca698497ce71a662c7989
tree8532463f2f80006cf8582b404762f7e0a58a5bb3
parent9e2b07702af8b27e0e54c7eb0dce8086041213ff
net/mlx5: DR, Ignore modify TTL on RX if device doesn't support it

When modifying TTL, packet's csum has to be recalculated.
Due to HW issue in ConnectX-5, csum recalculation for modify
TTL on RX is supported through a work-around that is specifically
enabled by configuration.
If the work-around isn't enabled, rather than adding an unsupported
action the modify TTL action on RX should be ignored.
Ignoring modify TTL action might result in zero actions, so in such
cases we will not convert the match STE to modify STE, as it is done
by FW in DMFS.

This patch fixes an issue where modify TTL action was ignored both
on RX and TX instead of only on RX.

Fixes: 2d41cee3c20b ("net/mlx5: DR, Ignore modify TTL if device doesn't support it")
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_v0.c