Re: [PATCH] net: spider_net: Use non-atomic bitmap API when applicable

2021-12-04 Thread Geoff Levand
Hi Christophe, On 11/27/21 7:18 AM, Christophe JAILLET wrote: > No concurrent access is possible when a bitmap is local to a function. > So prefer the non-atomic functions to save a few cycles. >- replace a 'for' loop by an equivalent non-atomic 'bitmap_fill()' call >- use '__set_bit()' >

[PATCH] net: spider_net: Use non-atomic bitmap API when applicable

2021-11-27 Thread Christophe JAILLET
No concurrent access is possible when a bitmap is local to a function. So prefer the non-atomic functions to save a few cycles. - replace a 'for' loop by an equivalent non-atomic 'bitmap_fill()' call - use '__set_bit()' While at it, clear the 'bitmask' bitmap only when needed. Signed-off-by