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

Function em_rx_queue_release_mbufs

dpdk/drivers/net/e1000/em_rxtx.c:1324–1337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1322}
1323
1324static void
1325em_rx_queue_release_mbufs(struct em_rx_queue *rxq)
1326{
1327 unsigned i;
1328
1329 if (rxq->sw_ring != NULL) {
1330 for (i = 0; i != rxq->nb_rx_desc; i++) {
1331 if (rxq->sw_ring[i].mbuf != NULL) {
1332 rte_pktmbuf_free_seg(rxq->sw_ring[i].mbuf);
1333 rxq->sw_ring[i].mbuf = NULL;
1334 }
1335 }
1336 }
1337}
1338
1339static void
1340em_rx_queue_release(struct em_rx_queue *rxq)

Callers 2

em_rx_queue_releaseFunction · 0.85
em_dev_clear_queuesFunction · 0.85

Calls 1

rte_pktmbuf_free_segFunction · 0.85

Tested by

no test coverage detected