[PATCH] net/mlx5: fix thread termination check on Windows
Tal Shnaiderman
talshn at nvidia.com
Wed Oct 12 08:49:49 CEST 2022
The mlx5_is_thread_alive function always returns false
(terminated) regardless to the actual thread state.
Fixed to return the correct thread state.
Bugzilla ID: 1089
Fixes: 5d55a494f4e62f2 ("net/mlx5: split multi-thread flow handling per OS")
Cc: stable at dpdk.org
Signed-off-by: Tal Shnaiderman <talshn at nvidia.com>
---
drivers/net/mlx5/windows/mlx5_flow_os.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/windows/mlx5_flow_os.c b/drivers/net/mlx5/windows/mlx5_flow_os.c
index 48d7da41b1..5013e9f012 100644
--- a/drivers/net/mlx5/windows/mlx5_flow_os.c
+++ b/drivers/net/mlx5/windows/mlx5_flow_os.c
@@ -262,7 +262,7 @@ mlx5_is_thread_alive(HANDLE thread_handle)
if (result == WAIT_OBJECT_0)
return false;
- return false;
+ return true;
}
static int
--
2.16.1.windows.4
More information about the stable
mailing list