Re: [PATCH v2 03/13] ibmvnic: simplify ibmvnic_set_queue_affinity()

2025-02-05 Thread Nick Child
On Tue, Jan 28, 2025 at 11:46:32AM -0500, Yury Norov wrote: > A loop based on cpumask_next_wrap() opencodes the dedicated macro > for_each_online_cpu_wrap(). Using the macro allows to avoid setting > bits affinity mask more than once when stride >= num_online_cpus. > nit: Same comment as left in p

[PATCH v2 03/13] ibmvnic: simplify ibmvnic_set_queue_affinity()

2025-01-28 Thread Yury Norov
A loop based on cpumask_next_wrap() opencodes the dedicated macro for_each_online_cpu_wrap(). Using the macro allows to avoid setting bits affinity mask more than once when stride >= num_online_cpus. This also helps to drop cpumask handling code in the caller function. CC: Nick Child Signed-off-