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

Function ntb_txq_release_mbufs

dpdk/drivers/raw/ntb/ntb.c:357–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357static void
358ntb_txq_release_mbufs(struct ntb_tx_queue *q)
359{
360 int i;
361
362 if (!q || !q->sw_ring) {
363 NTB_LOG(ERR, "Pointer to txq or sw_ring is NULL");
364 return;
365 }
366
367 for (i = 0; i < q->nb_tx_desc; i++) {
368 if (q->sw_ring[i].mbuf) {
369 rte_pktmbuf_free_seg(q->sw_ring[i].mbuf);
370 q->sw_ring[i].mbuf = NULL;
371 }
372 }
373}
374
375static void
376ntb_txq_release(struct ntb_tx_queue *txq)

Callers 3

ntb_txq_releaseFunction · 0.85
ntb_dev_startFunction · 0.85
ntb_dev_stopFunction · 0.85

Calls 1

rte_pktmbuf_free_segFunction · 0.85

Tested by

no test coverage detected