From: Jerin Jacob Date: Thu, 1 Jun 2017 06:41:23 +0000 (+0530) Subject: test/eventdev: verify priority test prerequisite X-Git-Tag: spdx-start~2965 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b5a07db4e91bb393659d5f1d6f1a3ebf141e66ed;p=dpdk.git test/eventdev: verify priority test prerequisite 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 --- diff --git a/test/test/test_eventdev_octeontx.c b/test/test/test_eventdev_octeontx.c index 9e95722ba1..fffb4a80ed 100644 --- a/test/test/test_eventdev_octeontx.c +++ b/test/test/test_eventdev_octeontx.c @@ -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