MCPcopy Create free account
hub / github.com/F-Stack/f-stack / do_tx

Function do_tx

dpdk/app/test-flow-perf/main.c:1724–1737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1722}
1723
1724static inline void
1725do_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
1739static void
1740packet_per_second_stats(void)

Callers 1

start_forwardingFunction · 0.70

Calls 2

rte_eth_tx_burstFunction · 0.85
rte_pktmbuf_freeFunction · 0.85

Tested by

no test coverage detected