net/mlx5: SF, Split mlx5_sf_hw_table into two parts
authorParav Pandit <parav@nvidia.com>
Fri, 5 Mar 2021 08:06:06 +0000 (10:06 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 24 Apr 2021 07:59:04 +0000 (00:59 -0700)
commita3088f87d984b3dddde3b3a3e453cef8033a0bd1
tree9b86fb4bfbf7d7a1a9e711ef8808b7b054002798
parent01ed9550e8b41e28f27a9ebf515e178fb5e3718b
net/mlx5: SF, Split mlx5_sf_hw_table into two parts

Device has SF ids in two different contiguous ranges. One for the local
controller and second for the external controller's PF.

Each such range has its own maximum number of functions and base id.
To allocate SF from either of the range, prepare code to split into
range specific fields into its own structure.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Vu Pham <vuhuong@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/sf/hw_table.c