net/mlx5: Fix tc max supported prio for nic mode
authorChris Mi <cmi@nvidia.com>
Tue, 14 Dec 2021 01:52:53 +0000 (03:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2022 10:47:54 +0000 (11:47 +0100)
commit7e8da9964437bc7867dec33fa86f2fa854631e9e
tree63154702bf4dd31311cc1bc44c1bb9a55002a4f3
parent7efe8499cb90651c540753f4269d2d43ede14223
net/mlx5: Fix tc max supported prio for nic mode

commit be7f4b0ab149afd19514929fad824b2117d238c9 upstream.

Only prio 1 is supported if firmware doesn't support ignore flow
level for nic mode. The offending commit removed the check wrongly.
Add it back.

Fixes: 9a99c8f1253a ("net/mlx5e: E-Switch, Offload all chain 0 priorities when modify header and forward action is not supported")
Signed-off-by: Chris Mi <cmi@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