]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6a1ac19f3196a3ffd2cf63fa3bad48d846759862
tree9b86fb4bfbf7d7a1a9e711ef8808b7b054002798
parenta04cfbfc0a00d8a6cfa279a7a0ffd4f8b69cddc6
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