[dpdk-stable] patch 'eal: fix control threads pinnning' has been queued to LTS release 18.11.2

Kevin Traynor ktraynor at redhat.com
Wed Apr 10 18:43:57 CEST 2019


Hi,

FYI, your patch has been queued to LTS release 18.11.2

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

Thanks.

Kevin Traynor

---
>From 380430e471720ddd2c6c23418b8b11226740b155 Mon Sep 17 00:00:00 2001
From: David Marchand <david.marchand at redhat.com>
Date: Tue, 19 Feb 2019 21:41:10 +0100
Subject: [PATCH] eal: fix control threads pinnning

[ upstream commit 759b9be661222768356ee50d8d15dc4d33646432 ]

pthread_setaffinity_np returns a >0 value on error.
We could end up letting the ctrl threads on the current process cpu
affinity.

Fixes: d651ee4919cd ("eal: set affinity for control threads")

Signed-off-by: David Marchand <david.marchand at redhat.com>
Reviewed-by: Anatoly Burakov <anatoly.burakov at intel.com>
Reviewed-by: Olivier Matz <olivier.matz at 6wind.com>
---
 lib/librte_eal/common/eal_common_thread.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_eal/common/eal_common_thread.c b/lib/librte_eal/common/eal_common_thread.c
index 48ef4d6de..a3985ce86 100644
--- a/lib/librte_eal/common/eal_common_thread.c
+++ b/lib/librte_eal/common/eal_common_thread.c
@@ -210,5 +210,5 @@ rte_ctrl_thread_create(pthread_t *thread, const char *name,
 
 	ret = pthread_setaffinity_np(*thread, sizeof(cpuset), &cpuset);
-	if (ret < 0)
+	if (ret)
 		goto fail;
 
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2019-04-10 14:06:11.654487276 +0100
+++ 0049-eal-fix-control-threads-pinnning.patch	2019-04-10 14:06:07.990291359 +0100
@@ -1,14 +1,15 @@
-From 759b9be661222768356ee50d8d15dc4d33646432 Mon Sep 17 00:00:00 2001
+From 380430e471720ddd2c6c23418b8b11226740b155 Mon Sep 17 00:00:00 2001
 From: David Marchand <david.marchand at redhat.com>
 Date: Tue, 19 Feb 2019 21:41:10 +0100
 Subject: [PATCH] eal: fix control threads pinnning
 
+[ upstream commit 759b9be661222768356ee50d8d15dc4d33646432 ]
+
 pthread_setaffinity_np returns a >0 value on error.
 We could end up letting the ctrl threads on the current process cpu
 affinity.
 
 Fixes: d651ee4919cd ("eal: set affinity for control threads")
-Cc: stable at dpdk.org
 
 Signed-off-by: David Marchand <david.marchand at redhat.com>
 Reviewed-by: Anatoly Burakov <anatoly.burakov at intel.com>


More information about the stable mailing list