]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5: Fix offloading with ESWITCH_IPV4_TTL_MODIFY_ENABLE
authorDima Chumak <dchumak@nvidia.com>
Mon, 17 Jan 2022 13:32:16 +0000 (15:32 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 2 Feb 2022 04:59:40 +0000 (20:59 -0800)
commit55b2ca702cfa744a9eb108915996a2294da47e71
treea4dc398f6e2f1b662aaa2cf3e5f4105856d45933
parent5623ef8a118838aae65363750dfafcba734dc8cb
net/mlx5: Fix offloading with ESWITCH_IPV4_TTL_MODIFY_ENABLE

Only prio 1 is supported for nic mode when there is no ignore flow level
support in firmware. But for switchdev mode, which supports fixed number
of statically pre-allocated prios, this restriction is not relevant so
it can be relaxed.

Fixes: d671e109bd85 ("net/mlx5: Fix tc max supported prio for nic mode")
Signed-off-by: Dima Chumak <dchumak@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_chains.c