[dpdk-dev] test/eventdev: octeontx: verify priority test prerequisite

Message ID 20170601064123.30448-1-jerin.jacob@caviumnetworks.com (mailing list archive)
State Accepted, archived
Delegated to: Jerin Jacob
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Jerin Jacob June 1, 2017, 6:41 a.m. UTC
  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 | 5 +++++
 1 file changed, 5 insertions(+)
  

Comments

Jerin Jacob June 20, 2017, 2:13 p.m. UTC | #1
-----Original Message-----
> Date: Thu,  1 Jun 2017 12:11:23 +0530
> From: Jerin Jacob <jerin.jacob@caviumnetworks.com>
> To: dev@dpdk.org
> Cc: harry.van.haaren@intel.com, Jerin Jacob <jerin.jacob@caviumnetworks.com>
> Subject: [dpdk-dev] [PATCH] test/eventdev: octeontx: verify priority test
>  prerequisite
> X-Mailer: git-send-email 2.13.0
> 
> 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>

Applied to dpdk-next-eventdev/master. Thanks.
  

Patch

diff --git a/test/test/test_eventdev_octeontx.c b/test/test/test_eventdev_octeontx.c
index 9e95722ba..5888c73aa 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 excepts 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