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

Function send_burst

dpdk/examples/ipsec-secgw/ipsec_worker.h:253–274  ·  view source on GitHub ↗

Send burst of packets on an output interface */

Source from the content-addressed store, hash-verified

251
252/* Send burst of packets on an output interface */
253static __rte_always_inline int32_t
254send_burst(struct lcore_conf *qconf, uint16_t n, uint16_t port)
255{
256 struct rte_mbuf **m_table;
257 int32_t ret;
258 uint16_t queueid;
259
260 queueid = qconf->tx_queue_id[port];
261 m_table = (struct rte_mbuf **)qconf->tx_mbufs[port].m_table;
262
263 ret = rte_eth_tx_burst(port, queueid, m_table, n);
264
265 core_stats_update_tx(ret);
266
267 if (unlikely(ret < n)) {
268 do {
269 free_pkts(&m_table[ret], 1);
270 } while (++ret < n);
271 }
272
273 return 0;
274}
275
276/*
277 * Helper function to fragment and queue for TX one packet.

Callers 4

send_packetsx4Function · 0.70
send_fragment_packetFunction · 0.70
send_single_packetFunction · 0.70
drain_tx_buffersFunction · 0.70

Calls 3

rte_eth_tx_burstFunction · 0.85
core_stats_update_txFunction · 0.85
free_pktsFunction · 0.70

Tested by

no test coverage detected