Re: [PATCH v2] wireguard: queueing: simplify wg_cpumask_next_online()
From: Simon Horman
Date: Mon Jun 30 2025 - 12:52:57 EST
On Thu, Jun 19, 2025 at 10:54:59AM -0400, Yury Norov wrote:
> From: Yury Norov [NVIDIA] <yury.norov@xxxxxxxxx>
>
> wg_cpumask_choose_online() opencodes cpumask_nth(). Use it and make the
> function significantly simpler. While there, fix opencoded cpu_online()
> too.
>
> Signed-off-by: Yury Norov [NVIDIA] <yury.norov@xxxxxxxxx>
> ---
> v1: https://lore.kernel.org/all/20250604233656.41896-1-yury.norov@xxxxxxxxx/
> v2:
> - fix 'cpu' undeclared;
> - change subject (Jason);
> - keep the original function structure (Jason);
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>