| 278 | } |
| 279 | |
| 280 | static int |
| 281 | test_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 | |
| 302 | static bool |
| 303 | match_queue(const struct rte_event *event, void *cb_data) |
no test coverage detected