Lines Matching refs:nb_tx

342 	unsigned i, portid, nb_rx, nb_tx;  in measure_rxtx()  local
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()
362 rte_pktmbuf_free(pkts_burst[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
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()
402 rte_pktmbuf_free(pkts_burst[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
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()
440 rte_pktmbuf_free(pkts_burst[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
483 nb_tx = RTE_MIN(MAX_PKT_BURST, num); in main_loop()
484 nb_tx = rte_eth_tx_burst(portid, 0, in main_loop()
485 &tx_burst[idx], nb_tx); in main_loop()
486 if (nb_tx == 0) in main_loop()
488 num -= nb_tx; in main_loop()
489 idx += nb_tx; in main_loop()
519 nb_tx = 0; in main_loop()
520 while (nb_tx < nb_rx) in main_loop()
521 rte_pktmbuf_free(pkts_burst[nb_tx++]); in main_loop()
620 unsigned int portid, nb_tx = 0; in exec_burst() local
647 nb_tx = RTE_MIN(MAX_PKT_BURST, num); in exec_burst()
649 nb_tx = rte_eth_tx_burst(portid, 0, &tx_burst[idx], nb_tx); in exec_burst()
650 idx += nb_tx; in exec_burst()
651 num -= nb_tx; in exec_burst()