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

Function send_burst

dpdk/examples/ipv4_multicast/main.c:160–178  ·  view source on GitHub ↗

Send burst of packets on an output interface */

Source from the content-addressed store, hash-verified

158
159/* Send burst of packets on an output interface */
160static void
161send_burst(struct lcore_queue_conf *qconf, uint16_t port)
162{
163 struct rte_mbuf **m_table;
164 uint16_t n, queueid;
165 int ret;
166
167 queueid = qconf->tx_queue_id[port];
168 m_table = (struct rte_mbuf **)qconf->tx_mbufs[port].m_table;
169 n = qconf->tx_mbufs[port].len;
170
171 ret = rte_eth_tx_burst(port, queueid, m_table, n);
172 while (unlikely (ret < n)) {
173 rte_pktmbuf_free(m_table[ret]);
174 ret++;
175 }
176
177 qconf->tx_mbufs[port].len = 0;
178}
179
180/* Get number of bits set. 8< */
181static inline uint32_t

Callers 2

mcast_send_pktFunction · 0.70
send_timeout_burstFunction · 0.70

Calls 2

rte_eth_tx_burstFunction · 0.85
rte_pktmbuf_freeFunction · 0.85

Tested by

no test coverage detected