[dpdk-stable] patch 'app/eventdev: check Tx adapter service ID' has been queued to LTS release 18.11.9

Kevin Traynor ktraynor at redhat.com
Fri Jun 5 20:24:47 CEST 2020


Hi,

FYI, your patch has been queued to LTS release 18.11.9

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 06/10/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/055173ee37ae10860d2c6ce432650c38cdbc2bb0

Thanks.

Kevin.

---
>From 055173ee37ae10860d2c6ce432650c38cdbc2bb0 Mon Sep 17 00:00:00 2001
From: Pavan Nikhilesh <pbhagavatula at marvell.com>
Date: Thu, 14 May 2020 01:52:48 +0530
Subject: [PATCH] app/eventdev: check Tx adapter service ID

[ upstream commit 40984bf253e1bccea72a38b2a0edd7c16ea22831 ]

Fix unchecked return values reported by coverity.

Coverity issue: 357755
Fixes: 032a965a8f1d ("app/eventdev: support Tx adapter")

Signed-off-by: Pavan Nikhilesh <pbhagavatula at marvell.com>
Acked-by: Jerin Jacob <jerinj at marvell.com>
---
 app/test-eventdev/test_pipeline_common.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/app/test-eventdev/test_pipeline_common.c b/app/test-eventdev/test_pipeline_common.c
index c988da28c9..b586804090 100644
--- a/app/test-eventdev/test_pipeline_common.c
+++ b/app/test-eventdev/test_pipeline_common.c
@@ -367,10 +367,14 @@ pipeline_event_tx_adapter_setup(struct evt_options *opt,
 			uint32_t service_id;
 
-			rte_event_eth_tx_adapter_service_id_get(consm,
-					&service_id);
+			ret = rte_event_eth_tx_adapter_service_id_get(consm,
+								   &service_id);
+			if (ret != -ESRCH && ret != 0) {
+				evt_err("Failed to get Tx adptr service ID");
+				return ret;
+			}
 			ret = evt_service_setup(service_id);
 			if (ret) {
 				evt_err("Failed to setup service core"
-						" for Tx adapter\n");
+						" for Tx adapter");
 				return ret;
 			}
-- 
2.21.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-06-05 19:20:53.573236910 +0100
+++ 0050-app-eventdev-check-Tx-adapter-service-ID.patch	2020-06-05 19:20:50.854039814 +0100
@@ -1 +1 @@
-From 40984bf253e1bccea72a38b2a0edd7c16ea22831 Mon Sep 17 00:00:00 2001
+From 055173ee37ae10860d2c6ce432650c38cdbc2bb0 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 40984bf253e1bccea72a38b2a0edd7c16ea22831 ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index 84c42b33ce..17088b1b48 100644
+index c988da28c9..b586804090 100644
@@ -22,2 +23,2 @@
-@@ -393,10 +393,14 @@ pipeline_event_tx_adapter_setup(struct evt_options *opt,
- 			uint32_t service_id = -1U;
+@@ -367,10 +367,14 @@ pipeline_event_tx_adapter_setup(struct evt_options *opt,
+ 			uint32_t service_id;



More information about the stable mailing list