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

Function test_dev_stop_flush

dpdk/drivers/event/dpaa2/dpaa2_eventdev_selftest.c:593–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591}
592
593static int
594test_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
616static int
617validate_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