| 596 | } |
| 597 | |
| 598 | static int |
| 599 | test_priority_atomic(struct test *t) |
| 600 | { |
| 601 | if (init(t, 1, 1) < 0 || |
| 602 | create_ports(t, 1) < 0 || |
| 603 | create_atomic_qids(t, 1) < 0) { |
| 604 | printf("%d: Error initializing device\n", __LINE__); |
| 605 | return -1; |
| 606 | } |
| 607 | |
| 608 | /* map the QID */ |
| 609 | if (rte_event_port_link(evdev, t->port[0], &t->qid[0], NULL, 1) != 1) { |
| 610 | printf("%d: error mapping qid to port\n", __LINE__); |
| 611 | return -1; |
| 612 | } |
| 613 | if (rte_event_dev_start(evdev) < 0) { |
| 614 | printf("%d: Error with start call\n", __LINE__); |
| 615 | return -1; |
| 616 | } |
| 617 | |
| 618 | return run_prio_packet_test(t); |
| 619 | } |
| 620 | |
| 621 | static int |
| 622 | test_priority_ordered(struct test *t) |
no test coverage detected