mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
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: 9a99c8f125
("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>
This commit is contained in:
parent
33de865f7b
commit
d671e109bd
1 changed files with 3 additions and 0 deletions
|
@ -121,6 +121,9 @@ u32 mlx5_chains_get_nf_ft_chain(struct mlx5_fs_chains *chains)
|
||||||
|
|
||||||
u32 mlx5_chains_get_prio_range(struct mlx5_fs_chains *chains)
|
u32 mlx5_chains_get_prio_range(struct mlx5_fs_chains *chains)
|
||||||
{
|
{
|
||||||
|
if (!mlx5_chains_prios_supported(chains))
|
||||||
|
return 1;
|
||||||
|
|
||||||
if (mlx5_chains_ignore_flow_level_supported(chains))
|
if (mlx5_chains_ignore_flow_level_supported(chains))
|
||||||
return UINT_MAX;
|
return UINT_MAX;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue