[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ac37d6f4-1cde-5d00-095c-43362cb4a097@huawei.com>
Date: Mon, 28 Oct 2019 09:27:12 +0800
From: Jiangfeng Xiao <xiaojiangfeng@...wei.com>
To: David Miller <davem@...emloft.net>
CC: <yisen.zhuang@...wei.com>, <salil.mehta@...wei.com>,
<netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<leeyou.li@...wei.com>, <zhanghan23@...wei.com>,
<nixiaoming@...wei.com>, <zhangqiang.cn@...ilicon.com>,
<dingjingcheng@...ilicon.com>
Subject: Re: [PATCH] net: hisilicon: Fix ping latency when deal with high
throughput
On 2019/10/27 2:22, David Miller wrote:
> From: Jiangfeng Xiao <xiaojiangfeng@...wei.com>
> Date: Sat, 26 Oct 2019 16:49:39 +0800
>
>> diff --git a/drivers/net/ethernet/hisilicon/hip04_eth.c b/drivers/net/ethernet/hisilicon/hip04_eth.c
>> index ad6d912..78f338a 100644
>> --- a/drivers/net/ethernet/hisilicon/hip04_eth.c
>> +++ b/drivers/net/ethernet/hisilicon/hip04_eth.c
>> @@ -575,7 +575,7 @@ static int hip04_rx_poll(struct napi_struct *napi, int budget)
>> struct hip04_priv *priv = container_of(napi, struct hip04_priv, napi);
>> struct net_device *ndev = priv->ndev;
>> struct net_device_stats *stats = &ndev->stats;
>> - unsigned int cnt = hip04_recv_cnt(priv);
>> + static unsigned int cnt_remaining;
>
> There is no way a piece of software state should be system wide, this is
> a per device instance value.
>
> .
>
Thank you for your guidance, I will fix it in v2.
Powered by blists - more mailing lists