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

Function ut_setup

dpdk/app/test-bbdev/test_bbdev.c:61–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61static int
62ut_setup(void)
63{
64 struct bbdev_testsuite_params *ts_params = &testsuite_params;
65 uint8_t num_queues;
66
67 /* Valid queue configuration */
68 ts_params->qconf.priority = 0;
69 ts_params->qconf.socket = SOCKET_ID_ANY;
70 ts_params->qconf.deferred_start = 1;
71
72 num_queues = 1;
73 TEST_ASSERT_SUCCESS(rte_bbdev_setup_queues(null_dev_id, num_queues,
74 SOCKET_ID_ANY), "Failed to setup queues for bbdev %u",
75 0);
76
77 /* Start the device */
78 TEST_ASSERT_SUCCESS(rte_bbdev_start(null_dev_id),
79 "Failed to start bbdev %u", 0);
80
81 return TEST_SUCCESS;
82}
83
84static void
85ut_teardown(void)

Callers

nothing calls this directly

Calls 2

rte_bbdev_setup_queuesFunction · 0.85
rte_bbdev_startFunction · 0.85

Tested by

no test coverage detected