| 479 | } |
| 480 | |
| 481 | static int |
| 482 | test_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 | |
| 500 | static int |
| 501 | test_app_unregister_callbacks(struct test_app *app) |
no test coverage detected