]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit78944dc6be07449d6e6e2e7e77ffc20e0ad88df0
tree47938bde3fde479c800770acef116cb74017275a
parent16183b1b6a35920b9255e3127e646633361ef305
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