From 4016f0bc45c66aadfee67ab28a90599b922978cd Mon Sep 17 00:00:00 2001 From: Dharmik Thakkar Date: Tue, 14 Jul 2020 16:51:08 -0500 Subject: [PATCH] app/testpmd: count empty polls in 5-tuple swap engine Enable empty polls in burst stats within 5tswap.c Signed-off-by: Dharmik Thakkar Reviewed-by: Honnappa Nagarahalli Reviewed-by: Phil Yang Reviewed-by: Ferruh Yigit --- app/test-pmd/5tswap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/test-pmd/5tswap.c b/app/test-pmd/5tswap.c index d9026ce865..3cf1692eab 100644 --- a/app/test-pmd/5tswap.c +++ b/app/test-pmd/5tswap.c @@ -114,11 +114,10 @@ pkt_burst_5tuple_swap(struct fwd_stream *fs) */ nb_rx = rte_eth_rx_burst(fs->rx_port, fs->rx_queue, pkts_burst, nb_pkt_per_burst); + inc_rx_burst_stats(fs, nb_rx); if (unlikely(nb_rx == 0)) return; - inc_rx_burst_stats(fs, nb_rx); - fs->rx_packets += nb_rx; txp = &ports[fs->tx_port]; ol_flags = ol_flags_init(txp->dev_conf.txmode.offloads); -- 2.20.1