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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Mar 2022 13:23:43 +0000 (14:23 +0100)
commit4a8e7f9dae4a05cb7eaad90d8f237845cb30eca1
treed73d50106d5bb100ab0b58d6413c51d08247d7b0
parentcbb726e6c652149e3bef4e4bc976a3864ec23c2b
net/mlx5: Fix offloading with ESWITCH_IPV4_TTL_MODIFY_ENABLE

commit 39bab83b119faac4bf7f07173a42ed35be95147e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_chains.c