Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2987207ybg; Mon, 28 Oct 2019 05:44:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMF5IxP6n13g/9TfIz9qqs/LD/qBeAAT26u4ewjUO6yuKXljxpaEs+FDBEACEs+Pd6uVEQ X-Received: by 2002:a17:906:9504:: with SMTP id u4mr15760418ejx.317.1572266667965; Mon, 28 Oct 2019 05:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572266667; cv=none; d=google.com; s=arc-20160816; b=Rm0eEQCJmMNiDeTFQBu4gpy3PnAUE09XVsgkyy6w4Fs/ebz6DNrD+ADm2WTqhEjVXL g5tUkKuC4V/3PBOkA1kHHpOuEMVBZaYCT+zjrYiY7fZPGtiVfRJm+h/P+o64bnBUSvtb 26n9+SOF0gV5bu1E5hBiMTX6pg/sRq6N1ihbimdZvjcegpN8RoIt8qduL54pKe9eFdaV YvowF1KVcOhKTuxBKS9dSAWHRVC3467CHcdZANB1WjyRDut2o8736Ghhm1I1RYCdM4zf qDtms7L1Xd28WSo/8+f7rpihFK4XB6WjuVQnBcrwXrGWdks9onjA/nD+kx6b+dvdKYp7 iH0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=c0puE31rYAIN1fLCMphj/ItmUgeaT2shhMR5U+mF/A8=; b=SaZqmImNBYNrB3dXEjUJC1M+G9SA7LZX67BS85D+W5hxwBMcS7bg5rDtsjjOhaT0Cn mWJCdTOJSqqAm1jgMyEhUDqm/9irEkf3NhEDW1Gyf+DkKqgeyV282Dk61cio984ZKxDj wSE7j7xCrGBAAFf1BBbNVsxarMYnnV+qSdu2k7LSRgBur3NCFsd1OL8ZSHpqHdjpCOIi m/8zUUKO5SWKfVUig/B/DVk065IvnKmmOSCEqeH3p3u+ihZUHq6yb+47VdCm7iumKdWR rIMhJY5QLRdtt0bld9BOK3VIFvc3Gtq30my4KhNS98BadEm3NjXmOtN1vnwBsT69Fjad CZRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i5si7231558edj.107.2019.10.28.05.44.04; Mon, 28 Oct 2019 05:44:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728947AbfJ1B1Z (ORCPT + 99 others); Sun, 27 Oct 2019 21:27:25 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:34400 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727787AbfJ1B1Z (ORCPT ); Sun, 27 Oct 2019 21:27:25 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 15F36FE7E36149B42143; Mon, 28 Oct 2019 09:27:23 +0800 (CST) Received: from [127.0.0.1] (10.67.103.228) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.439.0; Mon, 28 Oct 2019 09:27:13 +0800 Subject: Re: [PATCH] net: hisilicon: Fix ping latency when deal with high throughput To: David Miller References: <1572079779-76449-1-git-send-email-xiaojiangfeng@huawei.com> <20191026.112235.711416398803098524.davem@davemloft.net> CC: , , , , , , , , From: Jiangfeng Xiao Message-ID: Date: Mon, 28 Oct 2019 09:27:12 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20191026.112235.711416398803098524.davem@davemloft.net> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.103.228] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/10/27 2:22, David Miller wrote: > From: Jiangfeng Xiao > 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.