[dpdk-dev] [PATCH v2 2/5] app/testpmd: enable burst stats for flowgen mode rx path
Honnappa Nagarahalli
honnappa.nagarahalli at arm.com
Sat Jun 27 00:09:40 CEST 2020
Enable missing burst stats for rx path for flowgen mode.
Fixes: e9e23a617eb8 ("app/testpmd: add flowgen forwarding engine")
Cc: stable at dpdk.org
Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>
Reviewed-by: Phil Yang <phil.yang at arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>
Tested-by: Phil Yang <phil.yang at arm.com>
---
app/test-pmd/flowgen.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/app/test-pmd/flowgen.c b/app/test-pmd/flowgen.c
index 4bd351e67..011887c61 100644
--- a/app/test-pmd/flowgen.c
+++ b/app/test-pmd/flowgen.c
@@ -111,6 +111,10 @@ pkt_burst_flow_gen(struct fwd_stream *fs)
/* Receive a burst of packets and discard them. */
nb_rx = rte_eth_rx_burst(fs->rx_port, fs->rx_queue, pkts_burst,
nb_pkt_per_burst);
+#ifdef RTE_TEST_PMD_RECORD_BURST_STATS
+ fs->rx_burst_stats.pkt_burst_spread[nb_rx]++;
+#endif
+
fs->rx_packets += nb_rx;
for (i = 0; i < nb_rx; i++)
--
2.17.1
More information about the dev
mailing list