From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C2BABA04F3 for ; Tue, 31 Dec 2019 08:12:43 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 911321C0C8; Tue, 31 Dec 2019 08:12:43 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 5935C1C023; Tue, 31 Dec 2019 08:12:40 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Dec 2019 23:12:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,378,1571727600"; d="scan'208";a="269837476" Received: from dpdk-dipei.sh.intel.com ([10.67.110.224]) by FMSMGA003.fm.intel.com with ESMTP; 30 Dec 2019 23:12:38 -0800 From: Andy Pei To: dev@dpdk.org Cc: andy.pei@intel.com, stable@dpdk.org, ferruh.yigit@intel.com, rosen.xu@intel.com, xiaolong.ye@intel.com Date: Tue, 31 Dec 2019 14:53:47 +0800 Message-Id: <1577775227-287186-1-git-send-email-andy.pei@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-stable] [PATCH] net/ipn3ke: fix line side statistics register read X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" To read line side statistics register, eth_group_sel args in function ipn3ke_indirect_mac_read should be 0. When eth_group_sel is 1, the nic side register is read. Fixes: 5a6d883878db ("net/ipn3ke: implement statistics") Cc: andy.pei@intel.com Cc: stable@dpdk.org Signed-off-by: Andy Pei --- Cc: ferruh.yigit@intel.com Cc: rosen.xu@intel.com Cc: xiaolong.ye@intel.com drivers/net/ipn3ke/ipn3ke_representor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ipn3ke/ipn3ke_representor.c b/drivers/net/ipn3ke/ipn3ke_representor.c index 8d9ebef..80122e3 100644 --- a/drivers/net/ipn3ke/ipn3ke_representor.c +++ b/drivers/net/ipn3ke/ipn3ke_representor.c @@ -701,7 +701,7 @@ struct ipn3ke_rpst_hw_port_stats *hw_stats) &tmp, IPN3KE_25G_TX_STATISTICS_STATUS, port_id, - 1); + 0); if (tmp & IPN3KE_25G_TX_STATISTICS_STATUS_SHADOW_REQUEST_MASK) { tmp = 0x00000000; (*hw->f_mac_read)(hw, -- 1.8.3.1