> -----Original Message-----
> From: Intel-wired-lan <[email protected]> On Behalf Of Yury 
> Norov (NVIDIA)
> Sent: 18 December 2025 07:28
> To: Nguyen, Anthony L <[email protected]>; Kitszel, Przemyslaw 
> <[email protected]>; Andrew Lunn <[email protected]>; David S. 
> Miller <[email protected]>; Eric Dumazet <[email protected]>; Jakub 
> Kicinski <[email protected]>; Paolo Abeni <[email protected]>; 
> [email protected]; [email protected]; 
> [email protected]
> Cc: Yury Norov (NVIDIA) <[email protected]>; Loktionov, Aleksandr 
> <[email protected]>
> Subject: [Intel-wired-lan] [PATCH v2] i40e: drop useless bitmap_weight() call 
> in i40e_set_rxfh_fields()
>
> 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) <[email protected]>
> ---
> v1: https://lore.kernel.org/all/[email protected]/
> v2: don't drop flow_id (Aleksandr).
>
> .../net/ethernet/intel/i40e/i40e_ethtool.c    | 21 +++++++------------
> 1 file changed, 8 insertions(+), 13 deletions(-)
>

Tested-by: Rinitha S <[email protected]> (A Contingent worker at Intel)

Reply via email to