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

Function test_app_unregister_callbacks

dpdk/app/test/test_dispatcher.c:500–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498}
499
500static int
501test_app_unregister_callbacks(struct test_app *app)
502{
503 int i;
504 int rc;
505
506 if (app->never_match_reg_id >= 0) {
507 rc = rte_dispatcher_unregister(app->dispatcher,
508 app->never_match_reg_id);
509
510 TEST_ASSERT_SUCCESS(rc, "Unable to unregister never-match "
511 "handler");
512 app->never_match_reg_id = -1;
513 }
514
515 for (i = 0; i < NUM_QUEUES; i++) {
516 rc = test_app_unregister_callback(app, i);
517 if (rc != TEST_SUCCESS)
518 return rc;
519 }
520
521 if (app->finalize_reg_id >= 0) {
522 rc = rte_dispatcher_finalize_unregister(
523 app->dispatcher, app->finalize_reg_id
524 );
525 app->finalize_reg_id = -1;
526 }
527
528 return TEST_SUCCESS;
529}
530
531static void
532test_app_start_dispatcher(struct test_app *app)

Callers 4

test_setupFunction · 0.85
test_teardownFunction · 0.85

Tested by

no test coverage detected