Skip to content
Commit 3280f8a4 authored by Chris Mi's avatar Chris Mi Committed by Greg Kroah-Hartman
Browse files

net/mlx5: fs_chains: Fix ft prio if ignore_flow_level is not supported

[ Upstream commit 61eab651 ]

The cited commit sets ft prio to fs_base_prio. But if
ignore_flow_level it not supported, ft prio must be set based on
tc filter prio. Otherwise, all the ft prio are the same on the same
chain. It is invalid if ignore_flow_level is not supported.

Fix it by setting ft prio based on tc filter prio and setting
fs_base_prio to 0 for fdb.

Fixes: 8e80e564

 ("net/mlx5: fs_chains: Refactor to detach chains from tc usage")
Signed-off-by: default avatarChris Mi <cmi@nvidia.com>
Reviewed-by: default avatarPaul Blakey <paulb@nvidia.com>
Reviewed-by: default avatarRoi Dayan <roid@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent bd964343
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment