net/mlx5: Read the TC mapping of all priorities on ETS query
stable inclusion from stable-v5.10.177 commit 265101aea4c0939f4f916412d0c5469a088f2b7c category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=265101aea4c0939f4f916412d0c5469a088f2b7c -------------------------------- [ Upstream commit 44d55318 ] When ETS configurations are queried by the user to get the mapping assignment between packet priority and traffic class, only priorities up to maximum TCs are queried from QTCT register in FW to retrieve their assigned TC, leaving the rest of the priorities mapped to the default TC #0 which might be misleading. Fix by querying the TC mapping of all priorities on each ETS query, regardless of the maximum number of TCs configured in FW. Fixes: 820c2c5e ("net/mlx5e: Read ETS settings directly from firmware") Signed-off-by:Maher Sanalla <msanalla@nvidia.com> Reviewed-by:
Moshe Shemesh <moshe@nvidia.com> Signed-off-by:
Saeed Mahameed <saeedm@nvidia.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com> (cherry picked from commit d2063159)
Loading
Please sign in to comment