Lines Matching refs:nb_rx
342 unsigned i, portid, nb_rx, nb_tx; in measure_rxtx() local
350 nb_rx = rte_eth_rx_burst(portid, 0, in measure_rxtx()
352 if (unlikely(nb_rx == 0)) { in measure_rxtx()
357 count += nb_rx; in measure_rxtx()
358 nb_tx = rte_eth_tx_burst(portid, 0, pkts_burst, nb_rx); in measure_rxtx()
359 if (unlikely(nb_tx < nb_rx)) { in measure_rxtx()
360 drop += (nb_rx - nb_tx); in measure_rxtx()
363 } while (++nb_tx < nb_rx); in measure_rxtx()
380 unsigned i, portid, nb_rx, nb_tx; in measure_rxonly() local
389 nb_rx = rte_eth_rx_burst(portid, 0, in measure_rxonly()
391 if (unlikely(nb_rx == 0)) { in measure_rxonly()
397 count += nb_rx; in measure_rxonly()
398 nb_tx = rte_eth_tx_burst(portid, 0, pkts_burst, nb_rx); in measure_rxonly()
399 if (unlikely(nb_tx < nb_rx)) { in measure_rxonly()
400 drop += (nb_rx - nb_tx); in measure_rxonly()
403 } while (++nb_tx < nb_rx); in measure_rxonly()
418 unsigned i, portid, nb_rx, nb_tx; in measure_txonly() local
426 nb_rx = rte_eth_rx_burst(portid, 0, in measure_txonly()
428 if (unlikely(nb_rx == 0)) { in measure_txonly()
433 count += nb_rx; in measure_txonly()
436 nb_tx = rte_eth_tx_burst(portid, 0, pkts_burst, nb_rx); in measure_txonly()
437 if (unlikely(nb_tx < nb_rx)) { in measure_txonly()
438 drop += (nb_rx - nb_tx); in measure_txonly()
441 } while (++nb_tx < nb_rx); in measure_txonly()
462 unsigned i, portid, nb_rx = 0, nb_tx = 0; in main_loop() local
517 nb_rx = rte_eth_rx_burst(portid, 0, in main_loop()
520 while (nb_tx < nb_rx) in main_loop()
522 nb_free += nb_rx; in main_loop()
524 if (unlikely(nb_rx == 0)) in main_loop()
553 unsigned i, portid, nb_rx = 0; in poll_burst() local
585 nb_rx = rte_eth_rx_burst(portid, 0, in poll_burst()
588 if (unlikely(nb_rx == 0)) { in poll_burst()
594 next[portid] += nb_rx; in poll_burst()
595 num[portid] -= nb_rx; in poll_burst()
596 total -= nb_rx; in poll_burst()