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

Function test_dev_stop_flush

dpdk/drivers/event/octeontx/ssovf_evdev_selftest.c:706–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

704}
705
706static int
707test_dev_stop_flush(void)
708{
709 unsigned int total_events = MAX_EVENTS, count = 0;
710 int ret;
711
712 ret = generate_random_events(total_events);
713 if (ret)
714 return -1;
715
716 ret = rte_event_dev_stop_flush_callback_register(evdev, flush, &count);
717 if (ret)
718 return -2;
719 rte_event_dev_stop(evdev);
720 ret = rte_event_dev_stop_flush_callback_register(evdev, NULL, NULL);
721 if (ret)
722 return -3;
723 RTE_TEST_ASSERT_EQUAL(total_events, count,
724 "count mismatch total_events=%d count=%d",
725 total_events, count);
726 return 0;
727}
728
729static int
730validate_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