| 498 | } |
| 499 | |
| 500 | static int |
| 501 | test_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 | |
| 531 | static void |
| 532 | test_app_start_dispatcher(struct test_app *app) |
no test coverage detected