| 497 | } |
| 498 | |
| 499 | static void |
| 500 | cleanup_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 | |
| 517 | static void |
| 518 | cleanup_pdump_resources(void) |
no test coverage detected