[PATCH 6.1 061/127] net/mlx5: fs_core: Make find_closest_ft more generic