| 1722 | } |
| 1723 | |
| 1724 | static inline void |
| 1725 | do_tx(struct lcore_info *li, uint16_t cnt, uint16_t tx_port, |
| 1726 | uint16_t tx_queue) |
| 1727 | { |
| 1728 | uint16_t nr_tx = 0; |
| 1729 | uint16_t i; |
| 1730 | |
| 1731 | nr_tx = rte_eth_tx_burst(tx_port, tx_queue, li->pkts, cnt); |
| 1732 | li->tx_pkts += nr_tx; |
| 1733 | li->tx_drops += cnt - nr_tx; |
| 1734 | |
| 1735 | for (i = nr_tx; i < cnt; i++) |
| 1736 | rte_pktmbuf_free(li->pkts[i]); |
| 1737 | } |
| 1738 | |
| 1739 | static void |
| 1740 | packet_per_second_stats(void) |
no test coverage detected