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

Function testsuite_setup

dpdk/app/test/test_event_crypto_adapter.c:1462–1480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1460
1461
1462static int
1463testsuite_setup(void)
1464{
1465 int ret;
1466
1467 slcore_id = rte_get_next_lcore(-1, 1, 0);
1468 TEST_ASSERT_NOT_EQUAL(slcore_id, RTE_MAX_LCORE, "At least 2 lcores "
1469 "are required to run this autotest\n");
1470
1471 /* Setup and start event device. */
1472 ret = configure_eventdev();
1473 TEST_ASSERT_SUCCESS(ret, "Failed to setup eventdev\n");
1474
1475 /* Setup and start crypto device. */
1476 ret = configure_cryptodev();
1477 TEST_ASSERT_SUCCESS(ret, "cryptodev initialization failed\n");
1478
1479 return TEST_SUCCESS;
1480}
1481
1482static void
1483crypto_adapter_teardown(void)

Callers

nothing calls this directly

Calls 3

rte_get_next_lcoreFunction · 0.85
configure_cryptodevFunction · 0.85
configure_eventdevFunction · 0.70

Tested by

no test coverage detected