| 619 | } |
| 620 | |
| 621 | static int |
| 622 | test_priority_ordered(struct test *t) |
| 623 | { |
| 624 | if (init(t, 1, 1) < 0 || |
| 625 | create_ports(t, 1) < 0 || |
| 626 | create_ordered_qids(t, 1) < 0) { |
| 627 | printf("%d: Error initializing device\n", __LINE__); |
| 628 | return -1; |
| 629 | } |
| 630 | |
| 631 | /* map the QID */ |
| 632 | if (rte_event_port_link(evdev, t->port[0], &t->qid[0], NULL, 1) != 1) { |
| 633 | printf("%d: error mapping qid to port\n", __LINE__); |
| 634 | return -1; |
| 635 | } |
| 636 | if (rte_event_dev_start(evdev) < 0) { |
| 637 | printf("%d: Error with start call\n", __LINE__); |
| 638 | return -1; |
| 639 | } |
| 640 | |
| 641 | return run_prio_packet_test(t); |
| 642 | } |
| 643 | |
| 644 | static int |
| 645 | test_priority_unordered(struct test *t) |
no test coverage detected