[PATCH v2 24/26] net/hinic3: expose Tx queue copied-mbuf statistics
Jiacheng Ye
yejiacheng4 at h-partners.com
Wed Oct 14 17:09:20 CEST 2026
The Tx path copies mbufs when the segment count exceeds the inline
limit, tracking the number of copied packets and the number of segments
too large to inline. Expose these two counters in the per-queue extended
statistics so they are visible to applications.
Signed-off-by: Jiacheng Ye <yejiacheng4 at h-partners.com>
---
drivers/net/hinic3/hinic3_ethdev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/hinic3/hinic3_ethdev.c b/drivers/net/hinic3/hinic3_ethdev.c
index 3095b5a571..03d1dffb11 100644
--- a/drivers/net/hinic3/hinic3_ethdev.c
+++ b/drivers/net/hinic3/hinic3_ethdev.c
@@ -287,6 +287,8 @@ static const struct hinic3_xstats_name_off hinic3_txq_stats_strings[] = {
HINIC3_TXQ_STAT(burst_pkts),
HINIC3_TXQ_STAT(sge_len0),
HINIC3_TXQ_STAT(mbuf_null),
+ HINIC3_TXQ_STAT(cpy_pkts),
+ HINIC3_TXQ_STAT(sge_len_too_large),
#ifdef HINIC3_XSTAT_PROF_TX
HINIC3_TXQ_STAT(app_tsc),
--
2.33.0
More information about the dev
mailing list