| 591 | } |
| 592 | |
| 593 | static int |
| 594 | test_dev_stop_flush(void) |
| 595 | { |
| 596 | unsigned int total_events = MAX_EVENTS, count = 0; |
| 597 | int ret; |
| 598 | |
| 599 | ret = generate_random_events(total_events); |
| 600 | if (ret) |
| 601 | return -1; |
| 602 | |
| 603 | ret = rte_event_dev_stop_flush_callback_register(evdev, flush, &count); |
| 604 | if (ret) |
| 605 | return -2; |
| 606 | rte_event_dev_stop(evdev); |
| 607 | ret = rte_event_dev_stop_flush_callback_register(evdev, NULL, NULL); |
| 608 | if (ret) |
| 609 | return -3; |
| 610 | RTE_TEST_ASSERT_EQUAL(total_events, count, |
| 611 | "count mismatch total_events=%d count=%d", |
| 612 | total_events, count); |
| 613 | return 0; |
| 614 | } |
| 615 | |
| 616 | static int |
| 617 | validate_queue_to_port_single_link(uint32_t index, uint8_t port, |
nothing calls this directly
no test coverage detected