| 200 | } |
| 201 | |
| 202 | static int |
| 203 | testsuite_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 |
nothing calls this directly
no test coverage detected