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

Function igb_tx_queue_release_mbufs

dpdk/drivers/net/e1000/igb_rxtx.c:1259–1272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1257 */
1258
1259static void
1260igb_tx_queue_release_mbufs(struct igb_tx_queue *txq)
1261{
1262 unsigned i;
1263
1264 if (txq->sw_ring != NULL) {
1265 for (i = 0; i < txq->nb_tx_desc; i++) {
1266 if (txq->sw_ring[i].mbuf != NULL) {
1267 rte_pktmbuf_free_seg(txq->sw_ring[i].mbuf);
1268 txq->sw_ring[i].mbuf = NULL;
1269 }
1270 }
1271 }
1272}
1273
1274static void
1275igb_tx_queue_release(struct igb_tx_queue *txq)

Callers 2

igb_tx_queue_releaseFunction · 0.85
igb_dev_clear_queuesFunction · 0.85

Calls 1

rte_pktmbuf_free_segFunction · 0.85

Tested by

no test coverage detected