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 531F2A04FD; Wed, 22 Jun 2022 08:48:33 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 663BE4282D; Wed, 22 Jun 2022 08:48:23 +0200 (CEST) Received: from smtpproxy21.qq.com (smtpbg703.qq.com [203.205.195.89]) by mails.dpdk.org (Postfix) with ESMTP id ED75D4282A for ; Wed, 22 Jun 2022 08:48:20 +0200 (CEST) X-QQ-mid: bizesmtp66t1655880491tvzdcb69 Received: from wxdbg.localdomain.com ( [183.129.236.74]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 22 Jun 2022 14:48:10 +0800 (CST) X-QQ-SSF: 01400000002000F0Q000B00A0000000 X-QQ-FEAT: F3yR32iATbj57DaptpeFQ/3bR2NfsXL8VSJVAo4xVCsIW/psnadmt2+pSSj/9 m45MujEiMAb6yPj/wE/KxE48QM+Qv9G/6r0ddUacNj4gst+X681+jA3X7+u9Xr4d/svCTzZ WYJU0c86QJYBnFJgDirCHp/HHm1udla249DnjzhG/ky/fG1cx1LDAXokHA2BPwcFF4kfG8x 7pQ8FtOunwglC0u4GvQmFcfoiFt2BUqYbp4ZhOkYugE4Am+zqoJP+DXTmZNbS/ziXglH6n8 ydpcQxBsDXeEVbXO36rir5iMUWU9+l/0VmIiEw9pSzosxF3u/ckIbv1hzgguz0KR1BmAwmL usMMwpoVR3RJjJAm5YjJCZO2w/rOjzARh5xZpRX/CMVaVeDbKM= X-QQ-GoodBg: 2 From: Jiawen Wu To: dev@dpdk.org Cc: Jiawen Wu , stable@dpdk.org Subject: [PATCH v2 4/7] net/ngbe: add more packet statistics Date: Wed, 22 Jun 2022 14:56:10 +0800 Message-Id: <20220622065613.661679-5-jiawenwu@trustnetic.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220622065613.661679-1-jiawenwu@trustnetic.com> References: <20220622065613.661679-1-jiawenwu@trustnetic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:trustnetic.com:qybgforeign:qybgforeign4 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 Add more hardware extended statistics. Fixes: 8b433d04adc9 ("net/ngbe: support device xstats") Cc: stable@dpdk.org Signed-off-by: Jiawen Wu --- drivers/net/ngbe/ngbe_ethdev.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/ngbe/ngbe_ethdev.c b/drivers/net/ngbe/ngbe_ethdev.c index ee09d54c2f..308c231183 100644 --- a/drivers/net/ngbe/ngbe_ethdev.c +++ b/drivers/net/ngbe/ngbe_ethdev.c @@ -164,6 +164,8 @@ static const struct rte_ngbe_xstats_name_off rte_ngbe_stats_strings[] = { HW_XSTAT(rx_management_packets), HW_XSTAT(tx_management_packets), HW_XSTAT(rx_management_dropped), + HW_XSTAT(rx_dma_drop), + HW_XSTAT(tx_secdrp_packets), /* Basic Error */ HW_XSTAT(rx_crc_errors), @@ -179,6 +181,12 @@ static const struct rte_ngbe_xstats_name_off rte_ngbe_stats_strings[] = { HW_XSTAT(mac_local_errors), HW_XSTAT(mac_remote_errors), + /* PB Stats */ + HW_XSTAT(rx_up_dropped), + HW_XSTAT(rdb_pkt_cnt), + HW_XSTAT(rdb_repli_cnt), + HW_XSTAT(rdb_drp_cnt), + /* MACSEC */ HW_XSTAT(tx_macsec_pkts_untagged), HW_XSTAT(tx_macsec_pkts_encrypted), -- 2.27.0