net/mlx5: fs_core: Make find_closest_ft more generic
authorJianbo Liu <jianbol@nvidia.com>
Mon, 31 Jul 2023 11:58:40 +0000 (14:58 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Aug 2023 01:38:42 +0000 (18:38 -0700)
commit618d28a535a0582617465d14e05f3881736a2962
tree81a16003b4873aeef4dc4bd177d2c4958a30da14
parent0756384fb1bd38adb2ebcfd1307422f433a1d772
net/mlx5: fs_core: Make find_closest_ft more generic

As find_closest_ft_recursive is called to find the closest FT, the
first parameter of find_closest_ft can be changed from fs_prio to
fs_node. Thus this function is extended to find the closest FT for the
nodes of any type, not only prios, but also the sub namespaces.

Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/d3962c2b443ec8dde7a740dc742a1f052d5e256c.1690803944.git.leonro@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c