[dpdk-stable] patch 'test/event: check burst mode capability' has been queued to stable release 18.08.1

Kevin Traynor ktraynor at redhat.com
Wed Nov 21 17:47:20 CET 2018


Hi,

FYI, your patch has been queued to stable release 18.08.1

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/27/18. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the patch applied
to the branch. If the code is different (ie: not only metadata diffs), due for example to
a change in context or macro names, please double check it.

Thanks.

Kevin Traynor

---
>From c30c822273aa89d0feedc211fd0dcc9822fcc9dc Mon Sep 17 00:00:00 2001
From: Pavan Nikhilesh <pbhagavatula at caviumnetworks.com>
Date: Wed, 5 Sep 2018 19:53:31 +0530
Subject: [PATCH] test/event: check burst mode capability

[ upstream commit 6fe63a3d7ccc2e2376182f663251f42add77ec40 ]

Enqueue, dequeue depths are only valid for event devs that have burst
mode capability. Check event dev capability before testing depth
boundary.

Fixes: f8f9d233ea0e ("test/eventdev: add unit tests")

Signed-off-by: Pavan Nikhilesh <pbhagavatula at caviumnetworks.com>
Acked-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>
---
 test/test/test_eventdev.c | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/test/test/test_eventdev.c b/test/test/test_eventdev.c
index 04bdc6b6c..00d73275c 100644
--- a/test/test/test_eventdev.c
+++ b/test/test/test_eventdev.c
@@ -191,13 +191,16 @@ test_eventdev_configure(void)
 	TEST_ASSERT_EQUAL(-EINVAL,
 		test_ethdev_config_run(&dev_conf, &info, max_event_queue_flows),
-		 "Config negative test failed");
-	TEST_ASSERT_EQUAL(-EINVAL,
-		test_ethdev_config_run(&dev_conf, &info,
-			max_event_port_dequeue_depth),
-			 "Config negative test failed");
-	TEST_ASSERT_EQUAL(-EINVAL,
-		test_ethdev_config_run(&dev_conf, &info,
-		max_event_port_enqueue_depth),
-		 "Config negative test failed");
+		"Config negative test failed");
+
+	if (info.event_dev_cap & RTE_EVENT_DEV_CAP_BURST_MODE) {
+		TEST_ASSERT_EQUAL(-EINVAL,
+				test_ethdev_config_run(&dev_conf, &info,
+					max_event_port_dequeue_depth),
+				"Config negative test failed");
+		TEST_ASSERT_EQUAL(-EINVAL,
+				test_ethdev_config_run(&dev_conf, &info,
+					max_event_port_enqueue_depth),
+				"Config negative test failed");
+	}
 
 	/* Positive case */
-- 
2.19.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2018-11-21 16:44:31.118072816 +0000
+++ 0006-test-event-check-burst-mode-capability.patch	2018-11-21 16:44:30.000000000 +0000
@@ -1,14 +1,15 @@
-From 6fe63a3d7ccc2e2376182f663251f42add77ec40 Mon Sep 17 00:00:00 2001
+From c30c822273aa89d0feedc211fd0dcc9822fcc9dc Mon Sep 17 00:00:00 2001
 From: Pavan Nikhilesh <pbhagavatula at caviumnetworks.com>
 Date: Wed, 5 Sep 2018 19:53:31 +0530
 Subject: [PATCH] test/event: check burst mode capability
 
+[ upstream commit 6fe63a3d7ccc2e2376182f663251f42add77ec40 ]
+
 Enqueue, dequeue depths are only valid for event devs that have burst
 mode capability. Check event dev capability before testing depth
 boundary.
 
 Fixes: f8f9d233ea0e ("test/eventdev: add unit tests")
-Cc: stable at dpdk.org
 
 Signed-off-by: Pavan Nikhilesh <pbhagavatula at caviumnetworks.com>
 Acked-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>


More information about the stable mailing list