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

Function cleanup_rings

dpdk/app/pdump/main.c:499–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499static void
500cleanup_rings(void)
501{
502 int i;
503 struct pdump_tuples *pt;
504
505 for (i = 0; i < num_tuples; i++) {
506 pt = &pdump_t[i];
507
508 free(pt->device_id);
509
510 /* free the rings */
511 rte_ring_free(pt->rx_ring);
512 rte_ring_free(pt->tx_ring);
513 rte_mempool_free(pt->mp);
514 }
515}
516
517static void
518cleanup_pdump_resources(void)

Callers 2

cleanup_pdump_resourcesFunction · 0.85
create_mp_ring_vdevFunction · 0.85

Calls 3

rte_ring_freeFunction · 0.85
rte_mempool_freeFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected