net/mlx5: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 10 Jul 2022 12:36:22 +0000 (14:36 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 13 Jul 2022 22:56:44 +0000 (15:56 -0700)
commit32ea2776a81b8bf1902b7be08754e98c47fbd10f
tree47938bde3fde479c800770acef116cb74017275a
parent6a605eb1d71ea8cec50bdf7151c772c599a5fb70
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>
drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c