Thread (13 messages) 13 messages, 4 authors, 2014-06-02

Re: [PATCH net-next V6 1/2] cpumask: Utility function to set n'th cpu - local cpu first

From: David Miller <davem@davemloft.net>
Date: 2014-05-27 19:24:18
Also in: lkml

From: Amir Vadai <redacted>
Date: Sun, 25 May 2014 17:47:26 +0300
This function sets the n'th cpu - local cpu's first.
For example: in a 16 cores server with even cpu's local, will get the
following values:
cpumask_set_cpu_local_first(0, numa, cpumask) => cpu 0 is set
cpumask_set_cpu_local_first(1, numa, cpumask) => cpu 2 is set
...
cpumask_set_cpu_local_first(7, numa, cpumask) => cpu 14 is set
cpumask_set_cpu_local_first(8, numa, cpumask) => cpu 1 is set
cpumask_set_cpu_local_first(9, numa, cpumask) => cpu 3 is set
...
cpumask_set_cpu_local_first(15, numa, cpumask) => cpu 15 is set

Curently this function will be used by multi queue networking devices to
calculate the irq affinity mask, such that as many local cpu's as
possible will be utilized to handle the mq device irq's.

Signed-off-by: Amir Vadai <redacted>
I would like someone who cares about these cpumask interfaces to provide
a review.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help