[dpdk-stable] patch 'net/ipn3ke: use control thread to check link status' has been queued to stable release 19.11.3

luca.boccassi at gmail.com luca.boccassi at gmail.com
Tue May 19 15:02:26 CEST 2020


Hi,

FYI, your patch has been queued to stable release 19.11.3

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

Thanks.

Luca Boccassi

---
>From 7953227c1937e42300cc308ce8b3ff8f547ee8e0 Mon Sep 17 00:00:00 2001
From: Andy Pei <andy.pei at intel.com>
Date: Mon, 16 Mar 2020 14:07:17 +0800
Subject: [PATCH] net/ipn3ke: use control thread to check link status

[ upstream commit e5791726338ea4b83e329fd59e9d1af7066b7c0b ]

ipn3ke driver creates a thread to check link status.

Before this patch, pthread_create() is used to create
thread, leaving the new thread unrestrained wrt cpu
affinity.

After this patch, rte_ctrl_thread_create() is used to
create thread. The affinity of the new thread is based
on the CPU affinity retrieved at the time rte_eal_init()
was called, the dataplane and service lcores are then
excluded.

Fixes: 70d6b7f550f4 ("net/ipn3ke: add representor")

Signed-off-by: Andy Pei <andy.pei at intel.com>
Reviewed-by: Rosen Xu <rosen.xu at intel.com>
---
 drivers/net/ipn3ke/ipn3ke_representor.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ipn3ke/ipn3ke_representor.c b/drivers/net/ipn3ke/ipn3ke_representor.c
index 80122e3fc5..b673c49149 100644
--- a/drivers/net/ipn3ke/ipn3ke_representor.c
+++ b/drivers/net/ipn3ke/ipn3ke_representor.c
@@ -2598,7 +2598,8 @@ ipn3ke_rpst_scan_check(void)
 	int ret;
 
 	if (ipn3ke_rpst_scan_num == 1) {
-		ret = pthread_create(&ipn3ke_rpst_scan_thread,
+		ret = rte_ctrl_thread_create(&ipn3ke_rpst_scan_thread,
+			"ipn3ke scanner",
 			NULL,
 			ipn3ke_rpst_scan_handle_request, NULL);
 		if (ret) {
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-05-19 14:04:45.033794767 +0100
+++ 0011-net-ipn3ke-use-control-thread-to-check-link-status.patch	2020-05-19 14:04:44.072645761 +0100
@@ -1,8 +1,10 @@
-From e5791726338ea4b83e329fd59e9d1af7066b7c0b Mon Sep 17 00:00:00 2001
+From 7953227c1937e42300cc308ce8b3ff8f547ee8e0 Mon Sep 17 00:00:00 2001
 From: Andy Pei <andy.pei at intel.com>
 Date: Mon, 16 Mar 2020 14:07:17 +0800
 Subject: [PATCH] net/ipn3ke: use control thread to check link status
 
+[ upstream commit e5791726338ea4b83e329fd59e9d1af7066b7c0b ]
+
 ipn3ke driver creates a thread to check link status.
 
 Before this patch, pthread_create() is used to create
@@ -16,7 +18,6 @@
 excluded.
 
 Fixes: 70d6b7f550f4 ("net/ipn3ke: add representor")
-Cc: stable at dpdk.org
 
 Signed-off-by: Andy Pei <andy.pei at intel.com>
 Reviewed-by: Rosen Xu <rosen.xu at intel.com>


More information about the stable mailing list