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)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 23 Dec 2021 04:38:47 +0000 (20:38 -0800)
commitd671e109bd8548d067b27e39e183a484430bf102
tree3d1113614efd0af7fc515bf8d370fb1ba081d078
parent33de865f7bce3968676e43b0182af0a2dd359dae
net/mlx5: Fix tc max supported prio for nic mode

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>
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_chains.c