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

Xueming Li xuemingl at nvidia.com
Sun Apr 9 17:25:13 CEST 2023


Hi,

FYI, your patch has been queued to stable release 22.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/11/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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging

This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging/commit/abe24f4bd04e990c6f422b4bab8a3b178fa2fb26

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From abe24f4bd04e990c6f422b4bab8a3b178fa2fb26 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
Cc: Xueming Li <xuemingl at nvidia.com>

[ 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 2ef96a984a..e50fc73f43 100644
--- a/drivers/net/ipn3ke/ipn3ke_representor.c
+++ b/drivers/net/ipn3ke/ipn3ke_representor.c
@@ -2579,7 +2579,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.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-04-09 21:45:41.968606400 +0800
+++ 0125-net-ipn3ke-fix-thread-exit.patch	2023-04-09 21:45:38.799042200 +0800
@@ -1 +1 @@
-From d8f8e928a7ba23283300b1b80259d0c102348005 Mon Sep 17 00:00:00 2001
+From abe24f4bd04e990c6f422b4bab8a3b178fa2fb26 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit d8f8e928a7ba23283300b1b80259d0c102348005 ]
@@ -11 +13,0 @@
-Cc: stable at dpdk.org


More information about the stable mailing list