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 D8064A0547; Sun, 17 Oct 2021 11:42:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1949841101; Sun, 17 Oct 2021 11:42:28 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2085.outbound.protection.outlook.com [40.107.243.85]) by mails.dpdk.org (Postfix) with ESMTP id 7FF5641100 for ; Sun, 17 Oct 2021 11:42:26 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hmWQ4lT6MONGMHVCfFB+QmImPspSUxpbfg7FMm9BShVN5umkxlDjvTKQ7nKhO6ptC2cBIedr47hvbM1Cxg8P/PdHNb6KxqdC7ULOHIYJpGfTrr1Ww6p6J16P9U64VWxfgq8nQdQpc0DELepgfPoOuTZRN5CKJ5suGxLeJ33rfJyCHnKBAyVb9Qiw9QhiAnfbeViJlgjxQebIYH0zJ13fg1P2Ic1eR2ifqaVSR5T9Mf58QGwCvYsjd3ej2Rh3Z+AIUgN61FPuwH5AySh3nSlCP+sbgvekIXE2QX2obwpcxBMonaVq3ipwzMOGCU4OZw0qvzsLjdrf81X/4UITuiGOXQ== 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=A2RpQk2Mmg+H76qxiynKIQNvdEn0NVuhl7IkeGZCH/U=; b=O4vjw4z+WtysQd/uyvZ2oAFo8rIz/0zDpD4Vvv5ZUYY2YglPHsXSz0Z599blByA9oKeNK2FN+xGO1munAyYCCunG89+j1P2ZdrxExGD7hzJ5Sv4wYhjvIst04RmN+UXTK8chQrOvWOB+hKc+avgo8hq5SEG8EaKwosoALWdMbqaE9IlSUvYT1WnU+bY1t2b29bEMzUrg6BNRFe2Ve79M2A/ITzu+W/PNUOLDonNxw1owz7b8LxLrzEJ/o8Mc+S7uhLWnxIH/zbgmVsCtfncaX7xWgH8YFMMKAHgAp59y/fNLP4b7N3yTfJE0SWxOI0Nw0F/2M3clcDzvftd7mDaD3A== 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=A2RpQk2Mmg+H76qxiynKIQNvdEn0NVuhl7IkeGZCH/U=; b=aaU89Z71B/HbkiMJ0LkfYcxm7gTuwqvKZZk7n5iIjVMLMVGUMmbo4mUhS72/MJgshHoSr8R61jqPrDMjXHFD6RiJd/EtVMzCPp+n4d9RpcsLpdOyBQ8allFiN54HO4esoixZeBRnyJ94NnbXibsZmZXksp9oXucpunQiLJSYO8WER9bOD3m3ciQ3QXjzaByBjZuJKCp9zuOPOY1rLIy6DxIH9oqJgUeNJYNv4do1lDesTrAV+/fHrMxlauD8doXBGkPobbNKgLgFyOkLyGVVZPzeE9xEFk9IOLRomOrCdM2VUQZyQz8deA9OvVDt7wZJjEVD9kRZNQpHn6RX9pHA4w== Received: from BN8PR04CA0042.namprd04.prod.outlook.com (2603:10b6:408:d4::16) by SN1PR12MB2496.namprd12.prod.outlook.com (2603:10b6:802:2f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Sun, 17 Oct 2021 09:42:24 +0000 Received: from BN8NAM11FT025.eop-nam11.prod.protection.outlook.com (2603:10b6:408:d4:cafe::ef) by BN8PR04CA0042.outlook.office365.com (2603:10b6:408:d4::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16 via Frontend Transport; Sun, 17 Oct 2021 09:42:24 +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 BN8NAM11FT025.mail.protection.outlook.com (10.13.177.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4608.15 via Frontend Transport; Sun, 17 Oct 2021 09:42:24 +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; Sun, 17 Oct 2021 09:42:18 +0000 From: Tal Shnaiderman To: CC: , , , , , , , Date: Sun, 17 Oct 2021 12:41:33 +0300 Message-ID: <20211017094133.18988-8-talshn@nvidia.com> X-Mailer: git-send-email 2.16.1.windows.4 In-Reply-To: <20211017094133.18988-1-talshn@nvidia.com> References: <20211017094133.18988-1-talshn@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2c5c3760-4db5-4afc-161a-08d991526c76 X-MS-TrafficTypeDiagnostic: SN1PR12MB2496: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KYWxg/MYzZu3dBFYRsqs1Q7etr/YDTG4UiZUHnMnIlv8weob1xnd0EB+ncqhddsWvG6A3l7YVPLprivejPYvOXL7rgQLBr2beomSAzB5+FzZceqEYfqDN5i1gT1FGuMQQuGIh4s06zARDRJqAKD1BBBT+VRrFEDLhPsVGQ3NsnWTHBsgh9Jwsa6TS1NtaCZMTGqOfmnTwCDa6BUpw5KTQXfk/Ucf6UseM264PuAg7a/tK/qeEEN3sLIq96lZJgau2xZAMU0cBGNa4Tgffrhb7G6Rh4U+iWkCMwD9sUssSlWk1xn2NxfUclb6WcvGR3JNV0tWFAU4wyw9oH2WdtQaJZNJFQSSsGwRTXSjuyEpf7D/9xEThM8S15L85QoaM5H7YH8ORnzKryrhKASRfbA29uhOx4QhyLBAKBcjPKbf7oZSyHbUnw7bSBBt1oV2NCNlVVkMXBh9ffocz4APrwKccddoX5NFM6XGXQJZZ8dSLcLwDwNXR22N9S/NvB8EybUf6TcajCha1cESRBVYNdYuYF2WcL8BS5tKYRs3P1l65Cdh+6jfS0v61bSjpeJinczMpETbmJaif8gEJQ8kg3GnnYvDdaEhI2NX6+adY5PGLbLDOcfH4UnQ0zQ8ob+sZ2uyCnexBG9t6/GcP7XcTvHt1XA8XRicSLbsi8ccLWP3WS2uKzghyFPN+j02dHMFF/cok+oo61ch0EC3oebnelGkeQ== 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)(6666004)(508600001)(55016002)(47076005)(186003)(36860700001)(8676002)(36756003)(86362001)(70206006)(70586007)(7636003)(7696005)(2906002)(26005)(5660300002)(8936002)(82310400003)(16526019)(83380400001)(4326008)(6916009)(2616005)(1076003)(54906003)(107886003)(316002)(336012)(426003)(356005)(6286002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2021 09:42:24.0950 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2c5c3760-4db5-4afc-161a-08d991526c76 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: BN8NAM11FT025.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2496 Subject: [dpdk-dev] [PATCH v2 6/6] crypto/mlx5: support on Windows 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" Add support for mlx5 crypto pmd on Windows OS. Add changes to release note and pmd guide. Signed-off-by: Tal Shnaiderman --- doc/guides/cryptodevs/mlx5.rst | 15 ++++++++++++--- doc/guides/rel_notes/release_21_11.rst | 1 + drivers/common/mlx5/version.map | 2 +- drivers/common/mlx5/windows/mlx5_common_os.c | 2 +- drivers/crypto/mlx5/meson.build | 4 ++-- 5 files changed, 17 insertions(+), 7 deletions(-) diff --git a/doc/guides/cryptodevs/mlx5.rst b/doc/guides/cryptodevs/mlx5.rst index 68bfdf3a83..7338c0c493 100644 --- a/doc/guides/cryptodevs/mlx5.rst +++ b/doc/guides/cryptodevs/mlx5.rst @@ -39,12 +39,12 @@ or to access the hardware components directly. There are different levels of objects and bypassing abilities. To get the best performances: -- Verbs is a complete high-level generic API. -- Direct Verbs is a device-specific API. +- Verbs is a complete high-level generic API (Linux only). +- Direct Verbs is a device-specific API (Linux only). - DevX allows to access firmware objects. Enabling ``librte_crypto_mlx5`` causes DPDK applications -to be linked against libibverbs. +to be linked against libibverbs on Linux OS. In order to move the device to crypto operational mode, credential and KEK (Key Encrypting Key) should be set as the first step. @@ -155,8 +155,17 @@ Limitations Prerequisites ------------- +Linux Prerequisites +~~~~~~~~~~~~~~~~~~~ + - Mellanox OFED version: **5.3** see :doc:`../../nics/mlx5` guide for more Mellanox OFED details. - Compilation can be done also with rdma-core v15+. see :doc:`../../nics/mlx5` guide for more rdma-core details. + +Windows Prerequisites +~~~~~~~~~~~~~~~~~~~~~ + +- Mellanox WINOF-2 version: **2.60** or higher. + see :doc:`../../nics/mlx5` guide for more Mellanox WINOF-2 details. diff --git a/doc/guides/rel_notes/release_21_11.rst b/doc/guides/rel_notes/release_21_11.rst index 84278898b9..17a49c20ef 100644 --- a/doc/guides/rel_notes/release_21_11.rst +++ b/doc/guides/rel_notes/release_21_11.rst @@ -135,6 +135,7 @@ New Features Updated the Mellanox mlx5 driver with new features and improvements, including: * Added implicit mempool registration to avoid data path hiccups (opt-out). + * Added support for mlx5 crypto PMD on Windows operating system. Removed Items diff --git a/drivers/common/mlx5/version.map b/drivers/common/mlx5/version.map index 807043f22c..a30e0f9d12 100644 --- a/drivers/common/mlx5/version.map +++ b/drivers/common/mlx5/version.map @@ -16,7 +16,7 @@ INTERNAL { mlx5_dev_mempool_unregister; mlx5_dev_mempool_subscribe; - mlx5_devx_alloc_uar; # WINDOWS_NO_EXPORT + mlx5_devx_alloc_uar; mlx5_devx_cmd_alloc_pd; mlx5_devx_cmd_create_conn_track_offload_obj; diff --git a/drivers/common/mlx5/windows/mlx5_common_os.c b/drivers/common/mlx5/windows/mlx5_common_os.c index 44e8ebec2b..ea478d7395 100644 --- a/drivers/common/mlx5/windows/mlx5_common_os.c +++ b/drivers/common/mlx5/windows/mlx5_common_os.c @@ -202,7 +202,7 @@ mlx5_os_open_device(struct mlx5_common_device *cdev, uint32_t classes) struct mlx5_context *mlx5_ctx = NULL; int n; - if (classes != MLX5_CLASS_ETH) { + if (classes != MLX5_CLASS_ETH && classes != MLX5_CLASS_CRYPTO) { DRV_LOG(ERR, "The chosen classes are not supported on Windows."); rte_errno = ENOTSUP; diff --git a/drivers/crypto/mlx5/meson.build b/drivers/crypto/mlx5/meson.build index 1d6e413dd5..9d9c9c00bc 100644 --- a/drivers/crypto/mlx5/meson.build +++ b/drivers/crypto/mlx5/meson.build @@ -1,9 +1,9 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright (c) 2021 NVIDIA Corporation & Affiliates -if not is_linux +if not (is_linux or is_windows) build = false - reason = 'only supported on Linux' + reason = 'only supported on Linux and Windows' subdir_done() endif -- 2.16.1.windows.4