[dpdk-stable] patch 'app/eventdev: check timer adadpters number' has been queued to LTS release 18.11.11

Kevin Traynor ktraynor at redhat.com
Mon Nov 23 18:12:10 CET 2020


Hi,

FYI, your patch has been queued to LTS release 18.11.11

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/20. 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. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable-queue/commit/5567063f1dae62d8d4cacc4d628adb9d79c72c52

Thanks.

Kevin.

---
>From 5567063f1dae62d8d4cacc4d628adb9d79c72c52 Mon Sep 17 00:00:00 2001
From: Pavan Nikhilesh <pbhagavatula at marvell.com>
Date: Thu, 12 Nov 2020 23:13:29 +0530
Subject: [PATCH] app/eventdev: check timer adadpters number

[ upstream commit 15c19f36f59ed56b87ab4eb192a859bf273dbccc ]

Fix SEGFAULT when nb_timer_adapters command line parameter is
set to 0.

Fixes: 98c6292105d4 ("app/eventdev: add options for event timer adapter")

Signed-off-by: Pavan Nikhilesh <pbhagavatula at marvell.com>
---
 app/test-eventdev/evt_options.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app/test-eventdev/evt_options.c b/app/test-eventdev/evt_options.c
index cfa43a1655..c4ce24bc68 100644
--- a/app/test-eventdev/evt_options.c
+++ b/app/test-eventdev/evt_options.c
@@ -187,4 +187,8 @@ evt_parse_nb_timer_adptrs(struct evt_options *opt, const char *arg)
 
 	ret = parser_read_uint8(&(opt->nb_timer_adptrs), arg);
+	if (opt->nb_timer_adptrs <= 0) {
+		evt_err("Number of timer adapters cannot be <= 0");
+		return -EINVAL;
+	}
 
 	return ret;
-- 
2.26.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-11-23 17:10:14.423242361 +0000
+++ 0018-app-eventdev-check-timer-adadpters-number.patch	2020-11-23 17:10:14.000061593 +0000
@@ -1 +1 @@
-From 15c19f36f59ed56b87ab4eb192a859bf273dbccc Mon Sep 17 00:00:00 2001
+From 5567063f1dae62d8d4cacc4d628adb9d79c72c52 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 15c19f36f59ed56b87ab4eb192a859bf273dbccc ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -18 +19 @@
-index 6994ac453c..0d04ea9f8d 100644
+index cfa43a1655..c4ce24bc68 100644
@@ -21 +22 @@
-@@ -198,4 +198,8 @@ evt_parse_nb_timer_adptrs(struct evt_options *opt, const char *arg)
+@@ -187,4 +187,8 @@ evt_parse_nb_timer_adptrs(struct evt_options *opt, const char *arg)



More information about the stable mailing list