regex/mlx5: add completion queue creation
[dpdk.git] / app / test-pmd / rxonly.c
index 3eca89c..18d59a6 100644 (file)
@@ -63,17 +63,13 @@ pkt_burst_receive(struct fwd_stream *fs)
         */
        nb_rx = rte_eth_rx_burst(fs->rx_port, fs->rx_queue, pkts_burst,
                                 nb_pkt_per_burst);
-       if (unlikely(nb_rx == 0))
-               return;
-
 #ifdef RTE_TEST_PMD_RECORD_BURST_STATS
        fs->rx_burst_stats.pkt_burst_spread[nb_rx]++;
 #endif
-       fs->rx_packets += nb_rx;
+       if (unlikely(nb_rx == 0))
+               return;
 
-       /*
-        * Dump each received packet if verbose_level > 0.
-        */
+       fs->rx_packets += nb_rx;
        for (i = 0; i < nb_rx; i++)
                rte_pktmbuf_free(pkts_burst[i]);