Re: [PATCH] Octeontx2-af: use bitmap_empty() where appropriate

From: Paolo Abeni

Date: Fri Dec 19 2025 - 04:16:16 EST


On 12/16/25 1:47 AM, Yury Norov (NVIDIA) wrote:
> bitmap_empty() is more verbose and efficient, as it stops traversing
> bitmap as soon as the 1st set bit found.
>
> Switch the driver from bitmap_weight() to bitmap_empty() where
> appropriate.
>
> Signed-off-by: Yury Norov (NVIDIA) <yury.norov@xxxxxxxxx>

## Form letter - net-next-closed

The net-next tree is closed for new drivers, features, code refactoring
and optimizations due to the merge window and the winter break. We are
currently accepting bug fixes only.

Please repost when net-next reopens after Jan 2nd.

RFC patches sent for review only are obviously welcome at any time.