| 702 | } |
| 703 | |
| 704 | static int |
| 705 | test_dev_stop_flush(void) |
| 706 | { |
| 707 | unsigned int total_events = MAX_EVENTS, count = 0; |
| 708 | int ret; |
| 709 | |
| 710 | ret = generate_random_events(total_events); |
| 711 | if (ret) |
| 712 | return -1; |
| 713 | |
| 714 | ret = rte_event_dev_stop_flush_callback_register(evdev, flush, &count); |
| 715 | if (ret) |
| 716 | return -2; |
| 717 | rte_event_dev_stop(evdev); |
| 718 | ret = rte_event_dev_stop_flush_callback_register(evdev, NULL, NULL); |
| 719 | if (ret) |
| 720 | return -3; |
| 721 | RTE_TEST_ASSERT_EQUAL(total_events, count, |
| 722 | "count mismatch total_events=%d count=%d", |
| 723 | total_events, count); |
| 724 | |
| 725 | return 0; |
| 726 | } |
| 727 | |
| 728 | static int |
| 729 | validate_queue_to_port_single_link(uint32_t index, uint8_t port, |
nothing calls this directly
no test coverage detected