[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <675652db-6d35-783f-1745-6e6b932ed868@cogentembedded.com>
Date: Fri, 5 Aug 2016 14:00:32 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: kan.liang@...el.com, davem@...emloft.net,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Cc: mingo@...hat.com, peterz@...radead.org, kuznet@....inr.ac.ru,
jmorris@...ei.org, yoshfuji@...ux-ipv6.org, kaber@...sh.net,
akpm@...ux-foundation.org, keescook@...omium.org,
viro@...iv.linux.org.uk, gorcunov@...nvz.org,
john.stultz@...aro.org, aduyck@...antis.com, ben@...adent.org.uk,
decot@...glers.com, fw@...len.de, alexander.duyck@...il.com,
daniel@...earbox.net, tom@...bertland.com, rdunlap@...radead.org,
xiyou.wangcong@...il.com, hannes@...essinduktion.org,
jesse.brandeburg@...el.com, andi@...stfloor.org
Subject: Re: [RFC V2 PATCH 04/25] net/netpolicy: get CPU information
Hello.
On 8/4/2016 10:36 PM, kan.liang@...el.com wrote:
> From: Kan Liang <kan.liang@...el.com>
>
> Net policy also needs to know CPU information. Currently, online
> CPU number is enough.
s/number/count/. Or "the number of online CPUs".
>
> Signed-off-by: Kan Liang <kan.liang@...el.com>
> ---
> net/core/netpolicy.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/net/core/netpolicy.c b/net/core/netpolicy.c
> index 7c34c8a..075aaca 100644
> --- a/net/core/netpolicy.c
> +++ b/net/core/netpolicy.c
> @@ -49,6 +49,11 @@ static void netpolicy_free_dev_info(struct netpolicy_dev_info *d_info)
> kfree(d_info->tx_irq);
> }
>
> +static u32 netpolicy_get_cpu_information(void)
> +{
> + return num_online_cpus();
> +}
> +
> const char *policy_name[NET_POLICY_MAX] = {
> "NONE"
> };
MBR, Sergei
Powered by blists - more mailing lists