unregister all services */
| 105 | |
| 106 | /* unregister all services */ |
| 107 | static int |
| 108 | unregister_all(void) |
| 109 | { |
| 110 | uint32_t i; |
| 111 | |
| 112 | TEST_ASSERT_EQUAL(-EINVAL, rte_service_component_unregister(1000), |
| 113 | "Unregistered invalid service id"); |
| 114 | |
| 115 | uint32_t c = rte_service_get_count(); |
| 116 | for (i = 0; i < c; i++) { |
| 117 | TEST_ASSERT_EQUAL(0, rte_service_component_unregister(i), |
| 118 | "Error unregistering a valid service"); |
| 119 | } |
| 120 | |
| 121 | rte_service_lcore_reset_all(); |
| 122 | rte_eal_mp_wait_lcore(); |
| 123 | |
| 124 | return TEST_SUCCESS; |
| 125 | } |
| 126 | |
| 127 | /* Wait until service lcore not active, or for TIMEOUT_MS */ |
| 128 | static void |
no test coverage detected