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

Function test_app_unregister_callback

dpdk/app/test/test_dispatcher.c:481–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479}
480
481static int
482test_app_unregister_callback(struct test_app *app, uint8_t queue_id)
483{
484 int reg_id = app->queues[queue_id].dispatcher_reg_id;
485 int rc;
486
487 if (reg_id < 0) /* unregistered already */
488 return 0;
489
490 rc = rte_dispatcher_unregister(app->dispatcher, reg_id);
491
492 TEST_ASSERT_SUCCESS(rc, "Unable to unregister consumer "
493 "callback for queue %d", queue_id);
494
495 app->queues[queue_id].dispatcher_reg_id = -1;
496
497 return TEST_SUCCESS;
498}
499
500static int
501test_app_unregister_callbacks(struct test_app *app)

Callers 2

test_dropFunction · 0.85

Calls 1

Tested by

no test coverage detected