patch 'net/ipn3ke: fix thread exit' has been queued to stable release 20.11.8

luca.boccassi at gmail.com luca.boccassi at gmail.com
Wed Mar 22 01:41:54 CET 2023


Hi,

FYI, your patch has been queued to stable release 20.11.8

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

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/943d18fcd75414213bb4a1a5fbca4ee5cb165871

Thanks.

Luca Boccassi

---
>From 943d18fcd75414213bb4a1a5fbca4ee5cb165871 Mon Sep 17 00:00:00 2001
From: Wei Huang <wei.huang at intel.com>
Date: Thu, 16 Mar 2023 16:45:06 -0400
Subject: [PATCH] net/ipn3ke: fix thread exit

[ upstream commit d8f8e928a7ba23283300b1b80259d0c102348005 ]

Thread does not exit after driver is removed. When there is no
more representor exist, the variable 'num' will be 0 and thread
can exit safely at this time.

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

Signed-off-by: Wei Huang <wei.huang at intel.com>
Acked-by: Rosen Xu <rosen.xu at intel.com>
---
 drivers/net/ipn3ke/ipn3ke_representor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ipn3ke/ipn3ke_representor.c b/drivers/net/ipn3ke/ipn3ke_representor.c
index 603017f896..6e2e117a89 100644
--- a/drivers/net/ipn3ke/ipn3ke_representor.c
+++ b/drivers/net/ipn3ke/ipn3ke_representor.c
@@ -2589,7 +2589,7 @@ ipn3ke_rpst_scan_handle_request(__rte_unused void *param)
 		}
 		rte_delay_us(50 * MS);
 
-		if (num == 0xffffff)
+		if (num == 0 || num == 0xffffff)
 			return NULL;
 	}
 
-- 
2.39.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-03-21 21:56:37.759298766 +0000
+++ 0018-net-ipn3ke-fix-thread-exit.patch	2023-03-21 21:56:37.084807300 +0000
@@ -1 +1 @@
-From d8f8e928a7ba23283300b1b80259d0c102348005 Mon Sep 17 00:00:00 2001
+From 943d18fcd75414213bb4a1a5fbca4ee5cb165871 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit d8f8e928a7ba23283300b1b80259d0c102348005 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index 2ef96a984a..e50fc73f43 100644
+index 603017f896..6e2e117a89 100644
@@ -23 +24 @@
-@@ -2579,7 +2579,7 @@ ipn3ke_rpst_scan_handle_request(__rte_unused void *param)
+@@ -2589,7 +2589,7 @@ ipn3ke_rpst_scan_handle_request(__rte_unused void *param)


More information about the stable mailing list