Re: [PATCH] net: switchdev: Simplify 'mlxsw_sp_mc_write_mdb_entry()'

From: Ido Schimmel
Date: Wed Jul 14 2021 - 11:50:18 EST


On Wed, Jul 14, 2021 at 10:32:33AM +0200, Christophe JAILLET wrote:
> Use 'bitmap_alloc()/bitmap_free()' instead of hand-writing it.
> This makes the code less verbose.
>
> Also, use 'bitmap_alloc()' instead of 'bitmap_zalloc()' because the bitmap
> is fully overridden by a 'bitmap_copy()' call just after its allocation.
>
> While at it, remove an extra and unneeded space.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>

For net-next:

Reviewed-by: Ido Schimmel <idosch@xxxxxxxxxx>

Note that net-next is closed [1] so you might need to re-submit, if it
does not open soon.

Thanks for the patch.

[1] http://vger.kernel.org/~davem/net-next.html