]> git.baikalelectronics.ru Git - kernel.git/commit
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, 24 Feb 2022 00:08:13 +0000 (16:08 -0800)
commit67a1328965704331b4dff48bb9b8a182ea89eaca
tree4577fbe44fb01451d342813c58779db92d23f2f1
parent5a01229cf847e2f65046139f27778ab9eff2e2e5
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: eac191c17fc7 ("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