net/mlx5: Use the bitmap API to allocate bitmaps

Use bitmap_zalloc()/bitmap_free() instead of hand-writing them.

It is less verbose and it improves the semantic.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
Christophe JAILLET 2022-07-10 14:36:22 +02:00 • committed by Saeed Mahameed
commit 32ea2776a8