net/mlx5: SF, Use helpers for allocation and free
authorParav Pandit <parav@nvidia.com>
Fri, 5 Mar 2021 07:35:21 +0000 (09:35 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 24 Apr 2021 07:59:01 +0000 (00:59 -0700)
commit01ed9550e8b41e28f27a9ebf515e178fb5e3718b
tree2c8c814cd77b85876452a29947dda4b65d140210
parent326c08a02034ada6586b55860e34c0f4695f62ec
net/mlx5: SF, Use helpers for allocation and free

Use helper routines for SF id and SF table allocation and free
so that subsequent patch can reuse it for multiple SF function
id range.

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