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:26:50 +0000 (14:26 +0100)
commita0347a63d1bdd9b31a3eb2ba8d72d80bdd2a4d83
treec292ce76df9df958f7554a2a40e1736382d3c971
parent290902a5258048b5b820d25bc6bfc2e7216efbe0
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