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

Function testsuite_setup

dpdk/app/test/test_event_dma_adapter.c:694–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692}
693
694static int
695testsuite_setup(void)
696{
697 int ret;
698
699 slcore_id = rte_get_next_lcore(-1, 1, 0);
700 TEST_ASSERT_NOT_EQUAL(slcore_id, RTE_MAX_LCORE, "At least 2 lcores "
701 "are required to run this autotest\n");
702
703 /* Setup and start event device. */
704 ret = configure_eventdev();
705 TEST_ASSERT_SUCCESS(ret, "Failed to setup eventdev\n");
706
707 /* Setup and start dma device. */
708 ret = configure_dmadev();
709 TEST_ASSERT_SUCCESS(ret, "dmadev initialization failed\n");
710
711 return TEST_SUCCESS;
712}
713
714static void
715dma_adapter_teardown(void)

Callers

nothing calls this directly

Calls 3

rte_get_next_lcoreFunction · 0.85
configure_dmadevFunction · 0.85
configure_eventdevFunction · 0.70

Tested by

no test coverage detected