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

Function testsuite_setup

dpdk/app/test/test_event_eth_tx_adapter.c:202–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202static int
203testsuite_setup(void)
204{
205 const char *vdev_name = "event_sw0";
206
207 int err = init_ports();
208 TEST_ASSERT(err == 0, "Port initialization failed err %d\n", err);
209
210 if (rte_event_dev_count() == 0) {
211 printf("Failed to find a valid event device,"
212 " testing with event_sw0 device\n");
213 err = rte_vdev_init(vdev_name, NULL);
214 TEST_ASSERT(err == 0, "vdev %s creation failed %d\n",
215 vdev_name, err);
216 event_dev_delete = 1;
217 }
218 return err;
219}
220
221#define DEVICE_ID_SIZE 64
222

Callers

nothing calls this directly

Calls 4

rte_event_dev_countFunction · 0.85
rte_vdev_initFunction · 0.85
init_portsFunction · 0.70
printfFunction · 0.50

Tested by

no test coverage detected