Re: [PATCH 1/3] cpumask: add cpumask_weight_andnot()

2023-12-18 Thread Jacob Keller
off-by: Yury Norov This seems reasonable to me. Reviewed-by: Jacob Keller > --- > include/linux/bitmap.h | 12 > include/linux/cpumask.h | 13 + > lib/bitmap.c| 7 +++ > 3 files changed, 32 insertions(+) > > diff --git a/include/

Re: [PATCH 0/3] net: mana: add irq_spread()

2023-12-18 Thread Jacob Keller
On 12/17/2023 1:32 PM, Yury Norov wrote: > Add irq_spread() function that makes the driver working 15% faster than > with cpumask_local_spread() > > Yury Norov (3): > cpumask: add cpumask_weight_andnot() > cpumask: define cleanup function for cpumasks > net: mana: add a function to spread

Re: [PATCH 3/3] net: mana: add a function to spread IRQs per CPUs

2023-12-18 Thread Jacob Keller
On 12/17/2023 1:32 PM, Yury Norov wrote: > +static __maybe_unused int irq_setup(unsigned int *irqs, unsigned int len, > int node) > +{ > + const struct cpumask *next, *prev = cpu_none_mask; > + cpumask_var_t cpus __free(free_cpumask_var); > + int cpu, weight; > + > + if (!alloc_