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]> --- doc/guides/rel_notes/release_26_11.rst | 1 + drivers/net/hinic3/hinic3_ethdev.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/doc/guides/rel_notes/release_26_11.rst b/doc/guides/rel_notes/release_26_11.rst index aba7601a04..62073ea45f 100644 --- a/doc/guides/rel_notes/release_26_11.rst +++ b/doc/guides/rel_notes/release_26_11.rst @@ -180,6 +180,7 @@ New Features * Extended TCP segmentation offload (TSO) to 255 segments. * Added a compact task transmit data path. * Added Tx burst mode reporting. + * Added Tx queue copied-mbuf statistics. * **Updated Intel iavf driver.** diff --git a/drivers/net/hinic3/hinic3_ethdev.c b/drivers/net/hinic3/hinic3_ethdev.c index 4bbc1a1efb..54d266b1b2 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

