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 981CFA0C45; Mon, 25 Oct 2021 10:47:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 848ED410FF; Mon, 25 Oct 2021 10:47:12 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2061.outbound.protection.outlook.com [40.107.96.61]) by mails.dpdk.org (Postfix) with ESMTP id 0D2B841123 for ; Mon, 25 Oct 2021 10:47:09 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Av/HUOrVmMDh7NtoAGoQJAUtOQrvSxn4Bv4jYRLZHsHtC2JP3hNwOj3CNU8AGCityLiVq50ad895vl3c5wmo0Qw/dudzMiAyVNmz28Tg2xnfX9/dEWCylSXP45KkAF+rqEZIJpcbMYII/o2YyBJFxbq1G97GpBmCC6q0PrLzG8c4tUg6rPJbbwXMyZ93dtFakJvYDsJy7tCRyhzhcK/5Kym05frNn4GwiwaLv3L434C4PiRVcVoFFtAZa70HGD7QbSvTb3K7LuF4rgX+9jCOoJqmwwUrEWxBvWcTeXMKjmFMXY0eWQ5iR41J3v3t8DQIwyQ35zi2UevcDG/epHsecA== 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=GGqhhPmSspwtOgcu+oKIWY5WtVW9hDcgHKKeAA/Kv6o=; b=hhNxD13KYnJwL99tTfL6WeBHzHCl6xhRUAV04oWjwZ90eN4DTeJ7ZL5GT3/qTiuTROGqvq/9P7DSsNbKHw6+H75rd1zxR5ux/QknlScMMUP+2UDYRZ8V/mx11Z5ldYbfBh+TRkUyKnARpIC7FXLai2GLzZp7cMzcEDN845AexmzUiXxgkb0wTaIXJI3hcoXp0E/Bska5/AKDA5dypWrYEG1AufqmIE6Hj7gAXLGyipgpjXAauaJKZLjnDecJVZcP246mToYDtokJnmdl9NquN1A5i0kfFNHVZYnzU48Nr32Fpf25sW5QD2FS44SJmhs1yIXmQsXylcEjxYuVA+TxMQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=marvell.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine 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=GGqhhPmSspwtOgcu+oKIWY5WtVW9hDcgHKKeAA/Kv6o=; b=N7MT7fri7f/FOhqO7RMc1dgw+52nZAaW3mx/h7V8PpgVwSfH95iCNVtHB5G9I+sZTN9w5pkPJdOuVtYtCYmuUjJsogYGB3EkbkzVR2noIH2d2s6bEeMIFRU8YGhVPUX7+tR6e2syLiBkDdVYVKwwIv5aYi8lUEeUc7su+nGMYoHd7nUUXv79GxXyvssuA6toEpVSpZ2WRNj04K4zhw10o3/XKb3gKxRqhYgS3lo6miHES4A1gGniPclap8+XYM3H91RsYB202a135TtITDsWwl18hoYCwdcXAebs7+eivTV+Sr9o7YKvk2C5TZAgxH+OtvOSe2JIZvrGI2bFZ3gphg== Received: from MW4PR03CA0323.namprd03.prod.outlook.com (2603:10b6:303:dd::28) by CH0PR12MB5187.namprd12.prod.outlook.com (2603:10b6:610:ba::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Mon, 25 Oct 2021 08:47:06 +0000 Received: from CO1NAM11FT027.eop-nam11.prod.protection.outlook.com (2603:10b6:303:dd:cafe::39) by MW4PR03CA0323.outlook.office365.com (2603:10b6:303:dd::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16 via Frontend Transport; Mon, 25 Oct 2021 08:47:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by CO1NAM11FT027.mail.protection.outlook.com (10.13.174.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4628.16 via Frontend Transport; Mon, 25 Oct 2021 08:47:06 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 25 Oct 2021 08:47:02 +0000 From: Tal Shnaiderman To: CC: , , , , , , , Date: Mon, 25 Oct 2021 11:46:14 +0300 Message-ID: <20211025084617.4952-3-talshn@nvidia.com> X-Mailer: git-send-email 2.16.1.windows.4 In-Reply-To: <20211025084617.4952-1-talshn@nvidia.com> References: <20211017094133.18988-2-talshn@nvidia.com> <20211025084617.4952-1-talshn@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f899d90d-b7eb-44d1-a662-08d997940619 X-MS-TrafficTypeDiagnostic: CH0PR12MB5187: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3968; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HNxPguj2aTvNUKRxBe9NUJLiaWD0yzX+Jysy30TQ6YrAZ+UXHhbUvF752ujqvqIMDAUzLlEE27CKN+B8iopeFokv2wNsE/hwGaUu0iDVQ2+TaLy60ddEf4RoFcTgs1YYRvhkROjkij/YimTjOHV678F2JWPyXKwd2Qo1kwvEy5vrVbvef9h6ZX+e8y7XLoO/5YkE+te/rchDwrQX7ljba7msTiCU0wKZKv7m7nv9RB7GD/oIap+g1nejyQe75YiH22948LQDhanLirMULIEBLZl/elqAyO0eqtuC5/xJfAt1NwvMKyrDLaG8ctw2zWZtPzKaeLv7F/hkUOyme9iCPPH2V9nOjKSK8rsl6fE31P5+CeIL7aBNBnvI694wfGvqGSbkg5i/H7+zEWOsdsclncZpY7kUPArKYI86kxgDwWQCOBgQ5SvRVCXoS3JAoIswjK+LR3ehBkVzkO5omCc1dA1AURWi2AKmZdnxuRSsYNgXGIoRjVBq1DzsMb81lvZtWR0ZJsUcXHITjyWLcSjA/I3hWRnP4yuuuqN/gWO9Sd+P4jr0adzwVU7Upp2NiL3SeVef1dHoostJR9BvR6oXhLxz/O8ipR4hixN491wuAmBd/U3GEBsR01g/uq36cd+hHCHKU89L9hJ2bP2uBs6GZmU5A5nGKbB+wO0Ry6GYPZDerT5PolVRg0BBzXxBKsgQ78QaYc/njEvuvRSAhw4rVQ== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(356005)(8936002)(6666004)(4326008)(426003)(5660300002)(36756003)(83380400001)(2906002)(8676002)(1076003)(7636003)(508600001)(7696005)(316002)(6916009)(54906003)(186003)(70586007)(55016002)(16526019)(2616005)(70206006)(107886003)(47076005)(6286002)(86362001)(336012)(82310400003)(36860700001)(26005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2021 08:47:06.1165 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f899d90d-b7eb-44d1-a662-08d997940619 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT027.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5187 Subject: [dpdk-dev] [PATCH v3 2/5] crypto/mlx5: modify unix pthread code 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 Sender: "dev" Remove the usage of PTHREAD_MUTEX_INITIALIZER which is not support in Windows and initialize priv_list_lock in RTE_INIT. Signed-off-by: Tal Shnaiderman Acked-by: Matan Azrad --- drivers/crypto/mlx5/mlx5_crypto.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/mlx5/mlx5_crypto.c b/drivers/crypto/mlx5/mlx5_crypto.c index f430d8cde0..6bebc83c39 100644 --- a/drivers/crypto/mlx5/mlx5_crypto.c +++ b/drivers/crypto/mlx5/mlx5_crypto.c @@ -4,6 +4,7 @@ #include #include +#include #include #include #include @@ -33,7 +34,7 @@ TAILQ_HEAD(mlx5_crypto_privs, mlx5_crypto_priv) mlx5_crypto_priv_list = TAILQ_HEAD_INITIALIZER(mlx5_crypto_priv_list); -static pthread_mutex_t priv_list_lock = PTHREAD_MUTEX_INITIALIZER; +static pthread_mutex_t priv_list_lock; int mlx5_crypto_logtype; @@ -967,6 +968,7 @@ static struct mlx5_class_driver mlx5_crypto_driver = { RTE_INIT(rte_mlx5_crypto_init) { + pthread_mutex_init(&priv_list_lock, NULL); mlx5_common_init(); if (mlx5_glue != NULL) mlx5_class_driver_register(&mlx5_crypto_driver); -- 2.16.1.windows.4