]> 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)
commit6d4b33416c1ef7eb1d99d1dda9f9af081f80af8c
tree8532463f2f80006cf8582b404762f7e0a58a5bb3
parente24ca451a751c4d6535023d2f698d6533b052e5b
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: a143963a8880 ("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