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

Function tap_rxq_pool_free

dpdk/drivers/net/tap/rte_eth_tap.c:409–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407}
408
409static void
410tap_rxq_pool_free(struct rte_mbuf *pool)
411{
412 struct rte_mbuf *mbuf = pool;
413 uint16_t nb_segs = 1;
414
415 if (mbuf == NULL)
416 return;
417
418 while (mbuf->next) {
419 mbuf = mbuf->next;
420 nb_segs++;
421 }
422 pool->nb_segs = nb_segs;
423 rte_pktmbuf_free(pool);
424}
425
426/* Callback to handle the rx burst of packets to the correct interface and
427 * file descriptor(s) in a multi-queue setup.

Callers 4

pmd_rx_burstFunction · 0.85
tap_dev_closeFunction · 0.85
tap_rx_queue_releaseFunction · 0.85
tap_rx_queue_setupFunction · 0.85

Calls 1

rte_pktmbuf_freeFunction · 0.85

Tested by

no test coverage detected