[PATCH 07/31] common/cnxk: fix xstats for different packet sizes
Nithin Dabilpuram
ndabilpuram at marvell.com
Fri Aug 11 10:57:41 CEST 2023
From: Rakesh Kudurumalla <rkudurumalla at marvell.com>
xstats for transmitted packets with different sizes
are not updated as sizeof mbox response structure
are different in dpdk and kernel.This patch fixes the
same.
Fixes: 503b82de2cbf ("common/cnxk: add mbox request and response definitions")
Signed-off-by: Rakesh Kudurumalla <rkudurumalla at marvell.com>
---
drivers/common/cnxk/roc_mbox.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/common/cnxk/roc_mbox.h b/drivers/common/cnxk/roc_mbox.h
index 2fd01cd710..169bbcb664 100644
--- a/drivers/common/cnxk/roc_mbox.h
+++ b/drivers/common/cnxk/roc_mbox.h
@@ -558,7 +558,7 @@ enum cgx_af_status {
struct cgx_stats_rsp {
struct mbox_msghdr hdr;
-#define CGX_RX_STATS_COUNT 13
+#define CGX_RX_STATS_COUNT 9
#define CGX_TX_STATS_COUNT 18
uint64_t __io rx_stats[CGX_RX_STATS_COUNT];
uint64_t __io tx_stats[CGX_TX_STATS_COUNT];
--
2.25.1
More information about the dev
mailing list