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

Function test_cleanup_resources

dpdk/app/test/test_pmd_ring.c:428–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428static void
429test_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
456static int
457test_pmd_ringcreate_setup(void)

Callers

nothing calls this directly

Calls 6

rte_ring_freeFunction · 0.85
rte_eth_dev_stopFunction · 0.85
rte_strerrorFunction · 0.85
rte_mempool_freeFunction · 0.85
rte_vdev_uninitFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected