| 208 | } |
| 209 | |
| 210 | static int |
| 211 | test_app_create_dispatcher(struct test_app *app) |
| 212 | { |
| 213 | int rc; |
| 214 | |
| 215 | app->dispatcher = rte_dispatcher_create(app->event_dev_id); |
| 216 | |
| 217 | TEST_ASSERT(app->dispatcher != NULL, "Unable to create event " |
| 218 | "dispatcher"); |
| 219 | |
| 220 | app->dispatcher_service_id = |
| 221 | rte_dispatcher_service_id_get(app->dispatcher); |
| 222 | |
| 223 | rc = rte_service_set_stats_enable(app->dispatcher_service_id, 1); |
| 224 | |
| 225 | TEST_ASSERT_SUCCESS(rc, "Unable to enable event dispatcher service " |
| 226 | "stats"); |
| 227 | |
| 228 | rc = rte_service_runstate_set(app->dispatcher_service_id, 1); |
| 229 | |
| 230 | TEST_ASSERT_SUCCESS(rc, "Unable to set dispatcher service runstate"); |
| 231 | |
| 232 | return TEST_SUCCESS; |
| 233 | } |
| 234 | |
| 235 | static int |
| 236 | test_app_free_dispatcher(struct test_app *app) |
no test coverage detected