[PATCH 5.15 45/92] net/mlx5: fs_core: Make find_closest_ft more generic