Re: [PATCH v2] i40e: drop useless bitmap_weight() call in i40e_set_rxfh_fields()
From: Simon Horman
Date: Mon Jan 05 2026 - 10:51:48 EST
On Wed, Dec 17, 2025 at 08:57:57PM -0500, Yury Norov (NVIDIA) wrote:
> bitmap_weight() is O(N) and useless here, because the following
> for_each_set_bit() returns immediately in case of empty flow_pctypes.
>
> Signed-off-by: Yury Norov (NVIDIA) <yury.norov@xxxxxxxxx>
> ---
> v1: https://lore.kernel.org/all/20251216002852.334561-1-yury.norov@xxxxxxxxx/
> v2: don't drop flow_id (Aleksandr).
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>