[PATCH 5.10 154/201] net/mlx5: fs_core: Make find_closest_ft more generic