[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140527.152414.1304343647733553805.davem@davemloft.net>
Date: Tue, 27 May 2014 15:24:14 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: amirv@...lanox.com
Cc: ogerlitz@...lanox.com, netdev@...r.kernel.org,
yevgenyp@...lanox.com, yuvala@...lanox.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next V6 1/2] cpumask: Utility function to set n'th
cpu - local cpu first
From: Amir Vadai <amirv@...lanox.com>
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 <amirv@...lanox.com>
I would like someone who cares about these cpumask interfaces to provide
a review.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists