]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: DR, Ignore modify TTL if device doesn't support it
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Tue, 23 Nov 2021 00:11:12 +0000 (02:11 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 31 Dec 2021 08:17:41 +0000 (00:17 -0800)
commit4ff725e1d4adfd313bc9767523fc8d6e90d50f9c
treec44db69f3a387aff8c0707d75d061a1e18cce1c2
parentcc2295cd54e4832108831fd0a119bc4e0d5f8d50
net/mlx5: DR, Ignore modify TTL 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
is supported through a work-around that is specifically enabled
by configuration.
If the work-around isn't enabled, ignore the modify TTL action
rather than adding an unsupported action.

Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c
include/linux/mlx5/mlx5_ifc.h