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

Function ut_setup

dpdk/app/test-bbdev/test_bbdev_perf.c:1053–1069  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1051}
1052
1053static int
1054ut_setup(void)
1055{
1056 uint8_t i, dev_id;
1057
1058 for (i = 0; i < nb_active_devs; i++) {
1059 dev_id = active_devs[i].dev_id;
1060 /* reset bbdev stats */
1061 TEST_ASSERT_SUCCESS(rte_bbdev_stats_reset(dev_id),
1062 "Failed to reset stats of bbdev %u", dev_id);
1063 /* start the device */
1064 TEST_ASSERT_SUCCESS(rte_bbdev_start(dev_id),
1065 "Failed to start bbdev %u", dev_id);
1066 }
1067
1068 return TEST_SUCCESS;
1069}
1070
1071static void
1072ut_teardown(void)

Callers

nothing calls this directly

Calls 2

rte_bbdev_stats_resetFunction · 0.85
rte_bbdev_startFunction · 0.85

Tested by

no test coverage detected