test/eventdev: verify priority test prerequisite
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Thu, 1 Jun 2017 06:41:23 +0000 (12:11 +0530)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Wed, 21 Jun 2017 13:33:23 +0000 (15:33 +0200)
octeontx specific priority test expects priority of each
event queue to be a unique value. Verify that condition
before it processes to test the priority.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
test/test/test_eventdev_octeontx.c

index 9e95722..fffb4a8 100644 (file)
@@ -194,6 +194,11 @@ _eventdev_setup(int mode)
        TEST_ASSERT_SUCCESS(ret, "Failed to configure eventdev");
 
        if (mode == TEST_EVENTDEV_SETUP_PRIORITY) {
+               if (rte_event_queue_count(evdev) > 8) {
+                       printf("test expects the unique priority per queue\n");
+                       return -ENOTSUP;
+               }
+
                /* Configure event queues(0 to n) with
                 * RTE_EVENT_DEV_PRIORITY_HIGHEST to
                 * RTE_EVENT_DEV_PRIORITY_LOWEST