| 426 | } |
| 427 | |
| 428 | static void |
| 429 | test_cleanup_resources(void) |
| 430 | { |
| 431 | int itr, ret; |
| 432 | for (itr = 0; itr < NUM_RINGS; itr++) |
| 433 | rte_ring_free(rxtx[itr]); |
| 434 | |
| 435 | ret = rte_eth_dev_stop(tx_porta); |
| 436 | if (ret != 0) |
| 437 | printf("Error: failed to stop port %u: %s\n", |
| 438 | tx_porta, rte_strerror(-ret)); |
| 439 | ret = rte_eth_dev_stop(rx_portb); |
| 440 | if (ret != 0) |
| 441 | printf("Error: failed to stop port %u: %s\n", |
| 442 | rx_portb, rte_strerror(-ret)); |
| 443 | ret = rte_eth_dev_stop(rxtx_portc); |
| 444 | if (ret != 0) |
| 445 | printf("Error: failed to stop port %u: %s\n", |
| 446 | rxtx_portc, rte_strerror(-ret)); |
| 447 | |
| 448 | rte_mempool_free(mp); |
| 449 | rte_vdev_uninit("net_ring_net_ringa"); |
| 450 | rte_vdev_uninit("net_ring_net_ringb"); |
| 451 | rte_vdev_uninit("net_ring_net_ringc"); |
| 452 | rte_vdev_uninit("net_ring_net_ringd"); |
| 453 | rte_vdev_uninit("net_ring_net_ringe"); |
| 454 | } |
| 455 | |
| 456 | static int |
| 457 | test_pmd_ringcreate_setup(void) |
nothing calls this directly
no test coverage detected