]> git.droids-corp.org - dpdk.git/commitdiff
crypto/mlx5: support on Windows
authorTal Shnaiderman <talshn@nvidia.com>
Mon, 25 Oct 2021 08:46:17 +0000 (11:46 +0300)
committerAkhil Goyal <gakhil@marvell.com>
Thu, 4 Nov 2021 18:43:14 +0000 (19:43 +0100)
Add support for mlx5 crypto pmd on Windows OS.
Add changes to release note and PMD guide.

Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
doc/guides/cryptodevs/mlx5.rst
doc/guides/rel_notes/release_21_11.rst
drivers/common/mlx5/version.map
drivers/common/mlx5/windows/mlx5_common_os.c
drivers/crypto/mlx5/meson.build

index 68bfdf3a83d5404f40c79bf519c87f8bbc01e2d0..7338c0c493f0c60a676a54f997170103a2e5dd3e 100644 (file)
@@ -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.
index 7c1be8ce53711272c4175b92ed4d671a21bdcff0..9344e9e2880a77d911699a883004097e3551e298 100644 (file)
@@ -253,6 +253,10 @@ New Features
 
   * Added event crypto adapter OP_FORWARD mode support.
 
+* **Updated Mellanox mlx5 crypto driver.**
+
+  * Added Windows support.
+
 * **Updated NXP dpaa_sec crypto PMD.**
 
   * Added DES-CBC, AES-XCBC-MAC, AES-CMAC and non-HMAC algo support.
index 0ea8325f9ac2c72a55f0b9efbde829055451f99f..71cd7c625ecd98a98e04b3fdea8192abaf3f48ec 100644 (file)
@@ -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;
index 44e8ebec2b3ff0c00511dc0e7350534223b1791c..ea478d73958e97b6ae0c6cd5ead4fbb562ebabe1 100644 (file)
@@ -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;
index 1d6e413dd53ddb6791fc654ad11582aee384cae7..9d9c9c00bc1d4ef369377192312223ff307f0b05 100644 (file)
@@ -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