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

Function test_app_create_dispatcher

dpdk/app/test/test_dispatcher.c:210–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210static int
211test_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
235static int
236test_app_free_dispatcher(struct test_app *app)

Callers 1

test_setupFunction · 0.85

Calls 4

rte_dispatcher_createFunction · 0.85
rte_service_runstate_setFunction · 0.85

Tested by

no test coverage detected