From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E6CE6A0C4E; Tue, 2 Nov 2021 09:10:42 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CEB12410E5; Tue, 2 Nov 2021 09:10:42 +0100 (CET) Received: from smtpproxy21.qq.com (smtpbg702.qq.com [203.205.195.102]) by mails.dpdk.org (Postfix) with ESMTP id 3EBCB410E5 for ; Tue, 2 Nov 2021 09:10:39 +0100 (CET) X-QQ-mid: bizesmtp34t1635840630tv75zcvy Received: from jiawenwu.trustnetic.com (unknown [183.129.236.74]) by esmtp6.qq.com (ESMTP) with id ; Tue, 02 Nov 2021 16:10:27 +0800 (CST) X-QQ-SSF: 01400000002000E0I000000A0000000 X-QQ-FEAT: dpyQmELDBxF8JPm6kBOD2hKYvaepuPSa0f1H/EfJqmewZK1f78qRAWXdgVKPh 8CrbBHG95LR3zre28bL8WNL2+do0ArEb7pN0dy8ArVKQ+iISIO9dTPQXHI0gxmJA/26j8IY Jtio1fGtHFFds4RNlY8+i3v9iNcAKDDhhh/8PRzn7xStw3q/VONB52NY0NYXMZLOwPN8w49 DiiEd/edBQDVtG/Pbuh3dnYoPpeGqcjogRqgTm/gee/l9k5R6x8BDQzHWxoUb4tSEXlZTIX mcR2D6ReWCRN3t+nGAjdlr+fMJUu9t+NmKF10dVQlTuFqroq1l42ZzTxJGR/CKoio6SBEzG rMFIxNKHFBNqihG62ogJuGyhmcF/lo9FyelbuBm9rugZKGVMgc= X-QQ-GoodBg: 2 From: Jiawen Wu To: dev@dpdk.org Cc: Jiawen Wu , stable@dpdk.org Date: Tue, 2 Nov 2021 16:10:25 +0800 Message-Id: <20211102081026.22440-1-jiawenwu@trustnetic.com> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:trustnetic.com:qybgforeign:qybgforeign6 X-QQ-Bgrelay: 1 Subject: [dpdk-dev] [PATCH 1/2] net/txgbe: fix RxTx packet statistics X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fix specific length packet statistics caused by wrong register addresses. Fixes: 24a4c76aff4d ("net/txgbe: add error types and registers") Cc: stable@dpdk.org Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_regs.h | 48 ++++++++++++++--------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/net/txgbe/base/txgbe_regs.h b/drivers/net/txgbe/base/txgbe_regs.h index 48d9300a2e..144047ba62 100644 --- a/drivers/net/txgbe/base/txgbe_regs.h +++ b/drivers/net/txgbe/base/txgbe_regs.h @@ -1072,30 +1072,30 @@ enum txgbe_5tuple_protocol { #define TXGBE_MACRXERRCRCH 0x01192C #define TXGBE_MACRXERRLENL 0x011978 #define TXGBE_MACRXERRLENH 0x01197C -#define TXGBE_MACRX1TO64L 0x001940 -#define TXGBE_MACRX1TO64H 0x001944 -#define TXGBE_MACRX65TO127L 0x001948 -#define TXGBE_MACRX65TO127H 0x00194C -#define TXGBE_MACRX128TO255L 0x001950 -#define TXGBE_MACRX128TO255H 0x001954 -#define TXGBE_MACRX256TO511L 0x001958 -#define TXGBE_MACRX256TO511H 0x00195C -#define TXGBE_MACRX512TO1023L 0x001960 -#define TXGBE_MACRX512TO1023H 0x001964 -#define TXGBE_MACRX1024TOMAXL 0x001968 -#define TXGBE_MACRX1024TOMAXH 0x00196C -#define TXGBE_MACTX1TO64L 0x001834 -#define TXGBE_MACTX1TO64H 0x001838 -#define TXGBE_MACTX65TO127L 0x00183C -#define TXGBE_MACTX65TO127H 0x001840 -#define TXGBE_MACTX128TO255L 0x001844 -#define TXGBE_MACTX128TO255H 0x001848 -#define TXGBE_MACTX256TO511L 0x00184C -#define TXGBE_MACTX256TO511H 0x001850 -#define TXGBE_MACTX512TO1023L 0x001854 -#define TXGBE_MACTX512TO1023H 0x001858 -#define TXGBE_MACTX1024TOMAXL 0x00185C -#define TXGBE_MACTX1024TOMAXH 0x001860 +#define TXGBE_MACRX1TO64L 0x011940 +#define TXGBE_MACRX1TO64H 0x011944 +#define TXGBE_MACRX65TO127L 0x011948 +#define TXGBE_MACRX65TO127H 0x01194C +#define TXGBE_MACRX128TO255L 0x011950 +#define TXGBE_MACRX128TO255H 0x011954 +#define TXGBE_MACRX256TO511L 0x011958 +#define TXGBE_MACRX256TO511H 0x01195C +#define TXGBE_MACRX512TO1023L 0x011960 +#define TXGBE_MACRX512TO1023H 0x011964 +#define TXGBE_MACRX1024TOMAXL 0x011968 +#define TXGBE_MACRX1024TOMAXH 0x01196C +#define TXGBE_MACTX1TO64L 0x011834 +#define TXGBE_MACTX1TO64H 0x011838 +#define TXGBE_MACTX65TO127L 0x01183C +#define TXGBE_MACTX65TO127H 0x011840 +#define TXGBE_MACTX128TO255L 0x011844 +#define TXGBE_MACTX128TO255H 0x011848 +#define TXGBE_MACTX256TO511L 0x01184C +#define TXGBE_MACTX256TO511H 0x011850 +#define TXGBE_MACTX512TO1023L 0x011854 +#define TXGBE_MACTX512TO1023H 0x011858 +#define TXGBE_MACTX1024TOMAXL 0x01185C +#define TXGBE_MACTX1024TOMAXH 0x011860 #define TXGBE_MACRXUNDERSIZE 0x011938 #define TXGBE_MACRXOVERSIZE 0x01193C -- 2.21.0.windows.1