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

Function test_app_unbind_ports

dpdk/app/test/test_dispatcher.c:280–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280static int
281test_app_unbind_ports(struct test_app *app)
282{
283 int i;
284
285 for (i = 0; i < NUM_WORKERS; i++) {
286 unsigned int lcore_id = app->service_lcores[i];
287
288 int rc = rte_dispatcher_unbind_port_from_lcore(
289 app->dispatcher,
290 WORKER_PORT_ID(i),
291 lcore_id
292 );
293
294 TEST_ASSERT_SUCCESS(rc, "Unable to unbind event device port %d "
295 "from lcore %d", WORKER_PORT_ID(i),
296 lcore_id);
297 }
298
299 return TEST_SUCCESS;
300}
301
302static bool
303match_queue(const struct rte_event *event, void *cb_data)

Callers 1

test_teardownFunction · 0.85

Tested by

no test coverage detected