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

Function do_drain_mbuf_table

dpdk/examples/vhost/main.c:1234–1245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1232}
1233
1234static __rte_always_inline void
1235do_drain_mbuf_table(struct mbuf_table *tx_q)
1236{
1237 uint16_t count;
1238
1239 count = rte_eth_tx_burst(ports[0], tx_q->txq_id,
1240 tx_q->m_table, tx_q->len);
1241 if (unlikely(count < tx_q->len))
1242 free_pkts(&tx_q->m_table[count], tx_q->len - count);
1243
1244 tx_q->len = 0;
1245}
1246
1247/*
1248 * This function routes the TX packet to the correct interface. This

Callers 2

virtio_tx_routeFunction · 0.85
drain_mbuf_tableFunction · 0.85

Calls 2

rte_eth_tx_burstFunction · 0.85
free_pktsFunction · 0.70

Tested by

no test coverage detected