net/mlx5: Use mlx5_sf_start_function_id() helper instead of directly calling MLX5_CAP...
authorJiri Pirko <jiri@nvidia.com>
Fri, 30 Jun 2023 07:37:04 +0000 (09:37 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 14 Aug 2023 21:40:21 +0000 (14:40 -0700)
commit88074d81e5fe8b76010ea3437330d5ab55535537
treec4b4970fb143035d87cab743fe113125e9e594c5
parentae80d7a06fdb0b34a0f2842e1aac3da3bde93ccb
net/mlx5: Use mlx5_sf_start_function_id() helper instead of directly calling MLX5_CAP_GEN()

There is a helper called mlx5_sf_start_function_id() that
wraps up a query to get base SF function id. Use that instead of
calling MLX5_CAP_GEN() directly.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.c