]> 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)
commit9be6cedc038239808fc6bd158c8ca75b723d1fa8
tree9b86fb4bfbf7d7a1a9e711ef8808b7b054002798
parent477baacb4b781617a5a2c0450a90dd1d014e7df7
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