[dpdk-stable] patch 'test/event: fix build for timer adapter' has been queued to stable release 18.08.1

Kevin Traynor ktraynor at redhat.com
Wed Nov 21 17:47:21 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 7e5b9970c7027521b5ec8c2b0735542111b957e8 Mon Sep 17 00:00:00 2001
From: Nikhil Rao <nikhil.rao at intel.com>
Date: Thu, 27 Sep 2018 11:16:14 +0530
Subject: [PATCH] test/event: fix build for timer adapter

[ upstream commit 6298ec1bf8539e259595411a4af382487d32ec5c ]

Limit the number of objects passed to rte_mempool_put_bulk()
to the size of the object table. This fix eliminates a compiler
warning (array-bounds) triggered when the march command line
parameter to gcc is set to nehalem.

Fixes: d1f3385d0076 ("test: add event timer adapter auto-test")

Signed-off-by: Nikhil Rao <nikhil.rao at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
 test/test/test_event_timer_adapter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test/test_event_timer_adapter.c b/test/test/test_event_timer_adapter.c
index 93471db1d..a45b7d195 100644
--- a/test/test/test_event_timer_adapter.c
+++ b/test/test/test_event_timer_adapter.c
@@ -793,5 +793,5 @@ _cancel_burst_thread(void *args)
 				  "event timers");
 		rte_mempool_put_bulk(eventdev_test_mempool, (void **)ev_tim,
-				ret);
+				RTE_MIN(ret, MAX_BURST));
 
 		cancel_count += ret;
-- 
2.19.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2018-11-21 16:44:31.140415677 +0000
+++ 0007-test-event-fix-build-for-timer-adapter.patch	2018-11-21 16:44:30.000000000 +0000
@@ -1,15 +1,16 @@
-From 6298ec1bf8539e259595411a4af382487d32ec5c Mon Sep 17 00:00:00 2001
+From 7e5b9970c7027521b5ec8c2b0735542111b957e8 Mon Sep 17 00:00:00 2001
 From: Nikhil Rao <nikhil.rao at intel.com>
 Date: Thu, 27 Sep 2018 11:16:14 +0530
 Subject: [PATCH] test/event: fix build for timer adapter
 
+[ upstream commit 6298ec1bf8539e259595411a4af382487d32ec5c ]
+
 Limit the number of objects passed to rte_mempool_put_bulk()
 to the size of the object table. This fix eliminates a compiler
 warning (array-bounds) triggered when the march command line
 parameter to gcc is set to nehalem.
 
 Fixes: d1f3385d0076 ("test: add event timer adapter auto-test")
-Cc: stable at dpdk.org
 
 Signed-off-by: Nikhil Rao <nikhil.rao at intel.com>
 Acked-by: Bruce Richardson <bruce.richardson at intel.com>


More information about the stable mailing list