]> git.itanic.dy.fi Git - linux-stable/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)
commit785d7ed295513bd3374095304b7034fd65c123b0
tree8532463f2f80006cf8582b404762f7e0a58a5bb3
parentb33886971dbc4a86d1ec5369a2aaefc60a7cd72d
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: 4ff725e1d4ad ("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