]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: Convert SF port_indices xarray to function_ids xarray
authorJiri Pirko <jiri@nvidia.com>
Thu, 18 May 2023 09:33:16 +0000 (11:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Sep 2025 13:30:24 +0000 (15:30 +0200)
commita623e80aaa852789de597accb6d8c48af18c1564
treecd90cf9ad53493943cda1ef346c82eaf1441a7a2
parenta7e9da4d3afb304dec9ab73880f4d55babebe215
net/mlx5: Convert SF port_indices xarray to function_ids xarray

[ Upstream commit 2284a4836251b3dee348172f69ac84157aa7b03e ]

No need to lookup for sf by a port index. Convert the xarray to have
function id as an index and optimize the remaining function id
based lookup.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Stable-dep-of: 26e42ec7712d ("net/mlx5: Nack sync reset when SFs are present")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c