]> git.baikalelectronics.ru Git - kernel.git/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)
commit2d41cee3c20b2519b21942a88958063b740f87b0
treec44db69f3a387aff8c0707d75d061a1e18cce1c2
parent9e165e6798d3a1d7dc23727a003900aab53d2cb6
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