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 <jerin.jacob@caviumnetworks.com>
This commit is contained in:
parent
6ac67eb3b6
commit
b5a07db4e9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user