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 <[email protected]> --- 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 793e0f84ad..91ce5d8fba 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

