From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 16478A00C2; Wed, 12 Oct 2022 08:50:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BEAB442D86; Wed, 12 Oct 2022 08:50:31 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2085.outbound.protection.outlook.com [40.107.100.85]) by mails.dpdk.org (Postfix) with ESMTP id D920442BF0; Wed, 12 Oct 2022 08:50:29 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lVnrgVik9ZZ5Vrc5O2XIwwHVC65E8ZlyB7fOxmeV/p8R1XNysNCEOakHmz76At2kvyfjBVACOe7PrzPEPTXBxg/ciAGRqlF+KK/c2MWfEV6KdFSZVI/9BI0y/2cB5MAjGIXsWpYnaJyX/+TeCb63M3PqWaPZdMD397jQj7tP4x33Jc/2dvPUJkasHHAa7neLJoI0a7ZtaQXEocDgvJ22BfWCezLdeI/w0b+zPREzoAjF8ZMVMBoAAhN76JmAn0l9Atjs2s4t/yqXJMyyRTL+sKbdWhqSWOgfVpm0FhhQhRSx52gLmo01tiEF+5equ8t7FOgZogaLzqxaodniCH19sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uIgk4vRjBctuyX2xKYLmwGqTg4LXhWXWEv+x8pnWjvQ=; b=X62g7eFe3GBJa2OxMMiy1epmPXviRfEvPFGW/ztc3+ZKf0coYVqyXgPVm16Y6gkrbBdeQIZUqctTqA8DuT7fXOMdVZ2zH9n1FHSaUh+w4TmQIOWhAo1+M+QtyMe2ANjKMuHvXdE9g+FHNY/67Kylqk80XQ9xhNi5rSMSGOanr79lou6pzauLA8trQ99yf0mDagJqQnSRo0g8x35oKwZFIesebY3FYaRGj+P4Ntr9xcJ4UfOCHb2JeL0UeM2xfIJjXgcf8dsUqu/e4ArfWOGPJ0CzTEApoyKgMxe+0PA/0SemNueCJd/h8Z7gIVVnsgzFNhSApmmFFuc1WuKkwEhQ5A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uIgk4vRjBctuyX2xKYLmwGqTg4LXhWXWEv+x8pnWjvQ=; b=mBI52EQUdJvu/0uy+erNB9ifGqqQYDas+x1EppWn+xuBkYJiJujbVZMoULnqZIEc4xDXE0E2Nxaf2atEOF9AkPfLKuKPaLQt5je07tYVj9J+8L51UZrxtveK/8Z8VsFHh5eqTqv0uBZ3bCKUU9Jl6UH/qW1zrrGSRL59POGyDY9cz/0aKFzIPEM3iiI+ebOM46sUPU5pMEkoDsSfHq6kL0PEKBDRddmOaIcwHSbEgXA+5Mbqkrp+kPLOFHTuQvt7HITRfoxbsWvhoz7eQ7QJHyG5YmHPiYjsVkxygbqRYflTv3h0QXdqBWPz7ZkYbTO/0ZITZMhdcauWC0nK8o3G9Q== Received: from DM6PR17CA0030.namprd17.prod.outlook.com (2603:10b6:5:1b3::43) by BN9PR12MB5068.namprd12.prod.outlook.com (2603:10b6:408:135::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.21; Wed, 12 Oct 2022 06:50:27 +0000 Received: from DM6NAM11FT021.eop-nam11.prod.protection.outlook.com (2603:10b6:5:1b3:cafe::1b) by DM6PR17CA0030.outlook.office365.com (2603:10b6:5:1b3::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.15 via Frontend Transport; Wed, 12 Oct 2022 06:50:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DM6NAM11FT021.mail.protection.outlook.com (10.13.173.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.20 via Frontend Transport; Wed, 12 Oct 2022 06:50:25 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.26; Tue, 11 Oct 2022 23:50:15 -0700 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Tue, 11 Oct 2022 23:50:12 -0700 From: Tal Shnaiderman To: CC: , , , , , , Subject: [PATCH] net/mlx5: fix thread termination check on Windows Date: Wed, 12 Oct 2022 09:49:49 +0300 Message-ID: <20221012064949.2320-1-talshn@nvidia.com> X-Mailer: git-send-email 2.16.1.windows.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT021:EE_|BN9PR12MB5068:EE_ X-MS-Office365-Filtering-Correlation-Id: 290e04b9-3c47-4db8-e7bf-08daac1e0aeb X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1/OOD0mc1OOateG3JJ+esLPOoH7D2udo5lzIBg6lsWf5qZVpLcwpj8wQ0pav64DuhAwCRZHytRCCM14AgKIzWNu2m2yC6iFPd6gHRBOorQAeN+5blx1fby/NUNKoPFmxG5noXL+FKPoKS/Vn6n6JhbsiBd2lSnsX66rsow+8ozMd32VIBh2LrLqNl8JYTybnD0rspso1wTJFPK3YHmJZB8dZ6jtco0dvzhlCnZIRBEhPASkJIVeqUxG3Jo25X2esWFVT/45m3O2g3SGqkI6NyXNsSInCKzwyy9f/lPsc8k809OEsnxbFrcs1Ef7leCL22bBXt39i/MYpVBlFasfrtuU+qRZQ6ikoHMRrRrYr2KdvM1j6OPkzvGK/WkSGTpno3KOW5vBqmLYV3SAm3NdhWbvU8r5JWKLedpmO9cZ6g4yC6MHnA5AxdNN8WMp56t/eKEtOlTNeHfnumyxgGZOAQq/b3B3Tk93XBo4rsh1Cj86L+HLa93wbMdA5Y3tuq8zQB0HueNXXc8cuJTODRkgTiMFfpwr3q2L7EODSYQEgu1pcdamAx3S0/xEmItjSLEqFQHq1dgXZk15OnbDgCdc+m6EtbD7Ngq4zu6KtOx2uIPXM4iTSKr5X8Y1ApJHAkyRTfGIHqZScRL63YX+NthGk+rgTQcv13+y9t9G5fwU2ZnP6+wTK09G8wchCOZ+kSFQmPUF/wMV0pVmhn4cChOdLDc9GmBpkkEsd7jXwB98NGmug+hPEpV+2CW/ybAOcenqkZk4/CAceY5DhKFWegsZVVQ== X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230022)(4636009)(39860400002)(376002)(346002)(396003)(136003)(451199015)(46966006)(36840700001)(40470700004)(36756003)(36860700001)(7696005)(6666004)(83380400001)(336012)(7636003)(26005)(6286002)(186003)(356005)(1076003)(2616005)(82310400005)(82740400003)(478600001)(16526019)(2906002)(40480700001)(4744005)(40460700003)(41300700001)(55016003)(4326008)(47076005)(426003)(70586007)(86362001)(54906003)(70206006)(6916009)(8936002)(5660300002)(8676002)(316002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2022 06:50:25.7012 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 290e04b9-3c47-4db8-e7bf-08daac1e0aeb X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT021.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5068 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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@dpdk.org Signed-off-by: Tal Shnaiderman --- 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