Skip to content

Commit

Permalink
common/cnxk: fix xstats for different packet sizes
Browse files Browse the repository at this point in the history
[ upstream commit c68c442ff41c150e6d40b96817cfa8c17c44007e ]

xstats for transmitted packets with different sizes
are not updated as sizeof mailbox response structure
are different in DPDK and kernel. This patch fixes the
same.

Fixes: 503b82d ("common/cnxk: add mbox request and response definitions")

Signed-off-by: Rakesh Kudurumalla <rkudurumalla@marvell.com>
  • Loading branch information
Rakesh Kudurumalla authored and kevintraynor committed Oct 31, 2023
1 parent b2da49e commit 981e209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/common/cnxk/roc_mbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ struct lmtst_tbl_setup_req {

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];
Expand Down

0 comments on commit 981e209

Please sign in to comment.