Skip to content

Commit

Permalink
net/mlx5: fix thread termination check on Windows
Browse files Browse the repository at this point in the history
[ upstream commit 5976328 ]

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: 5d55a49 ("net/mlx5: split multi-thread flow handling per OS")

Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
  • Loading branch information
Tal Shnaiderman authored and kevintraynor committed Nov 7, 2022
1 parent 6c158b7 commit 6aa04c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/mlx5/windows/mlx5_flow_os.c
Expand Up @@ -262,7 +262,7 @@ mlx5_is_thread_alive(HANDLE thread_handle)

if (result == WAIT_OBJECT_0)
return false;
return false;
return true;
}

static int
Expand Down

0 comments on commit 6aa04c9

Please sign in to comment.