]> 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, 23 Dec 2021 04:38:47 +0000 (20:38 -0800)
commite7b4158c2af057f69464096f99bb0c2f73031e4a
tree3d1113614efd0af7fc515bf8d370fb1ba081d078
parent304305d40c22a3cb799ae70073787c1d7d7c2860
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: 0c77dce8c4d3 ("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