MCPcopy Create free account
hub / github.com/F-Stack/f-stack / test_dev_stop_flush

Function test_dev_stop_flush

dpdk/drivers/event/cnxk/cnxk_eventdev_selftest.c:704–726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702}
703
704static int
705test_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
728static int
729validate_queue_to_port_single_link(uint32_t index, uint8_t port,

Callers

nothing calls this directly

Calls 3

rte_event_dev_stopFunction · 0.85
generate_random_eventsFunction · 0.70

Tested by

no test coverage detected