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

Function ntb_rxq_release_mbufs

dpdk/drivers/raw/ntb/ntb.c:272–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272static void
273ntb_rxq_release_mbufs(struct ntb_rx_queue *q)
274{
275 int i;
276
277 if (!q || !q->sw_ring) {
278 NTB_LOG(ERR, "Pointer to rxq or sw_ring is NULL");
279 return;
280 }
281
282 for (i = 0; i < q->nb_rx_desc; i++) {
283 if (q->sw_ring[i].mbuf) {
284 rte_pktmbuf_free_seg(q->sw_ring[i].mbuf);
285 q->sw_ring[i].mbuf = NULL;
286 }
287 }
288}
289
290static void
291ntb_rxq_release(struct ntb_rx_queue *rxq)

Callers 3

ntb_rxq_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