git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/ice: support src MAC filter for flow director
[dpdk.git]
/
app
/
test-pmd
/
rxonly.c
diff --git
a/app/test-pmd/rxonly.c
b/app/test-pmd/rxonly.c
index
5c65fc4
..
18d59a6
100644
(file)
--- a/
app/test-pmd/rxonly.c
+++ b/
app/test-pmd/rxonly.c
@@
-63,12
+63,12
@@
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);
*/
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
#ifdef RTE_TEST_PMD_RECORD_BURST_STATS
fs->rx_burst_stats.pkt_burst_spread[nb_rx]++;
#endif
+ if (unlikely(nb_rx == 0))
+ return;
+
fs->rx_packets += nb_rx;
for (i = 0; i < nb_rx; i++)
rte_pktmbuf_free(pkts_burst[i]);
fs->rx_packets += nb_rx;
for (i = 0; i < nb_rx; i++)
rte_pktmbuf_free(pkts_burst[i]);