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 8B350A04A6; Wed, 9 Feb 2022 11:36:23 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5264641199; Wed, 9 Feb 2022 11:35:55 +0100 (CET) Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128]) by mails.dpdk.org (Postfix) with ESMTP id 8E39E41199 for ; Wed, 9 Feb 2022 11:35:53 +0100 (CET) X-QQ-mid: bizesmtp37t1644402941tfp89w07 Received: from wxdbg.localdomain.com (unknown [183.129.236.74]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 09 Feb 2022 18:35:40 +0800 (CST) X-QQ-SSF: 01400000002000F0L000B00A0000000 X-QQ-FEAT: TskX/GkkryDC37zX4bS7/ZEir6CJs2YZvbfb1y/hTopYn5kMcRlTtJZCp908q PjaRousA4Wq0OKK1CGwhCu0OIla9FVFSGMvuPRiWciBkxhdThFNBF4gRkZ0TpsI9zSlSyvh bEVLqQHyc9TMSzoQHUDenZ13NYfoL/qt8NjWHCxvfkLAS878IUbvsbKVraq9m6zjRm1lPgn j9F27BmubGRVZrFqq7pjJ0/qgCgm2H3gmmJHUGPW/eg8oxjjWsRC3cbQMz8XmWk2eEMAP2j CBghrR0g9KIXhYtav39uwujJO4Stm9mE0i9866dq6EIZAa2ce89YGqXcSqI2jVDp1fcBl6b FC/kvf3eEG55TNGFCeMGpZVeXpBM/7TRbl2XyI+oCKFK9LYgGY= X-QQ-GoodBg: 2 From: Jiawen Wu To: dev@dpdk.org Cc: Jiawen Wu , stable@dpdk.org Subject: [PATCH v2 04/12] net/ngbe: fix RxTx packet statistics Date: Wed, 9 Feb 2022 18:42:05 +0800 Message-Id: <20220209104213.602728-5-jiawenwu@trustnetic.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220209104213.602728-1-jiawenwu@trustnetic.com> References: <20220209104213.602728-1-jiawenwu@trustnetic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:trustnetic.com:qybgforeign:qybgforeign6 X-QQ-Bgrelay: 1 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 Fix specific length packet statistics caused by wrong register addresses. Fixes: ed5f3bd3373e ("net/ngbe: define registers") Cc: stable@dpdk.org Signed-off-by: Jiawen Wu --- drivers/net/ngbe/base/ngbe_regs.h | 48 +++++++++++++++---------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/net/ngbe/base/ngbe_regs.h b/drivers/net/ngbe/base/ngbe_regs.h index e84bfdf88a..6432ad8736 100644 --- a/drivers/net/ngbe/base/ngbe_regs.h +++ b/drivers/net/ngbe/base/ngbe_regs.h @@ -785,30 +785,30 @@ enum ngbe_5tuple_protocol { #define NGBE_MACRXERRCRCH 0x01192C #define NGBE_MACRXERRLENL 0x011978 #define NGBE_MACRXERRLENH 0x01197C -#define NGBE_MACRX1TO64L 0x001940 -#define NGBE_MACRX1TO64H 0x001944 -#define NGBE_MACRX65TO127L 0x001948 -#define NGBE_MACRX65TO127H 0x00194C -#define NGBE_MACRX128TO255L 0x001950 -#define NGBE_MACRX128TO255H 0x001954 -#define NGBE_MACRX256TO511L 0x001958 -#define NGBE_MACRX256TO511H 0x00195C -#define NGBE_MACRX512TO1023L 0x001960 -#define NGBE_MACRX512TO1023H 0x001964 -#define NGBE_MACRX1024TOMAXL 0x001968 -#define NGBE_MACRX1024TOMAXH 0x00196C -#define NGBE_MACTX1TO64L 0x001834 -#define NGBE_MACTX1TO64H 0x001838 -#define NGBE_MACTX65TO127L 0x00183C -#define NGBE_MACTX65TO127H 0x001840 -#define NGBE_MACTX128TO255L 0x001844 -#define NGBE_MACTX128TO255H 0x001848 -#define NGBE_MACTX256TO511L 0x00184C -#define NGBE_MACTX256TO511H 0x001850 -#define NGBE_MACTX512TO1023L 0x001854 -#define NGBE_MACTX512TO1023H 0x001858 -#define NGBE_MACTX1024TOMAXL 0x00185C -#define NGBE_MACTX1024TOMAXH 0x001860 +#define NGBE_MACRX1TO64L 0x011940 +#define NGBE_MACRX1TO64H 0x011944 +#define NGBE_MACRX65TO127L 0x011948 +#define NGBE_MACRX65TO127H 0x01194C +#define NGBE_MACRX128TO255L 0x011950 +#define NGBE_MACRX128TO255H 0x011954 +#define NGBE_MACRX256TO511L 0x011958 +#define NGBE_MACRX256TO511H 0x01195C +#define NGBE_MACRX512TO1023L 0x011960 +#define NGBE_MACRX512TO1023H 0x011964 +#define NGBE_MACRX1024TOMAXL 0x011968 +#define NGBE_MACRX1024TOMAXH 0x01196C +#define NGBE_MACTX1TO64L 0x011834 +#define NGBE_MACTX1TO64H 0x011838 +#define NGBE_MACTX65TO127L 0x01183C +#define NGBE_MACTX65TO127H 0x011840 +#define NGBE_MACTX128TO255L 0x011844 +#define NGBE_MACTX128TO255H 0x011848 +#define NGBE_MACTX256TO511L 0x01184C +#define NGBE_MACTX256TO511H 0x011850 +#define NGBE_MACTX512TO1023L 0x011854 +#define NGBE_MACTX512TO1023H 0x011858 +#define NGBE_MACTX1024TOMAXL 0x01185C +#define NGBE_MACTX1024TOMAXH 0x011860 #define NGBE_MACRXUNDERSIZE 0x011938 #define NGBE_MACRXOVERSIZE 0x01193C -- 2.21.0.windows.1