Skip to contentSkip to conversation

crypto/mlx5: support BF2 and ConnectX6-DX devices

PATCH New Raja Zidane 4 participants 12 messages Nov 7, 2021 – Nov 12, 2021 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto/mlx5: support BF2 and ConnectX6-DX devices

Starting from MLNX_OFED 5.5. version, the BlueField2 and ConnextX6-DX adapters support crypto operations.

Add them to the supported PCI devices list.

---
dependant on https://patchwork.dpdk.org/project/dpdk/cover/[email protected]/

 doc/guides/cryptodevs/mlx5.rst         | 6 +++++-
 doc/guides/rel_notes/release_21_11.rst | 4 ++++
 drivers/crypto/mlx5/mlx5_crypto.c      | 8 ++++++++
 3 files changed, 17 insertions(+), 1 deletion(-)
doc/guides/cryptodevs/mlx5.rst +5 -1
index 9bd8c6fe85..4ca0f7e5ea 100644
@@ -88,6 +88,7 @@ The mlxreg dedicated tool should be used as follows:
   should not be specified.
 
   All the device ports should set it in order to move to operational mode.
+  For BlueField2, also the internal ports in the ARMs system should be set.
 
 - Query CRYPTO_OPERATIONAL register to make sure the device is in Operational
   mode.
@@ -141,6 +142,8 @@ Supported NICs
 --------------
 
 * Mellanox\ |reg| ConnectX\ |reg|-6 200G MCX654106A-HCAT (2x200G)
+* Mellanox\ |reg| BlueField 2 SmartNIC
+* Mellanox\ |reg| ConnectX\ |reg|-6DX
 
 
 Limitations
@@ -158,7 +161,8 @@ Prerequisites
 Linux Prerequisites
 ~~~~~~~~~~~~~~~~~~~
 
-- Mellanox OFED version: **5.3**
+- Mellanox OFED version: starts at 5.3 for ConnectX6.
+  Mellanox OFED version: 5.5 for ConnectX6DX and BF2.
   see :doc:`../../nics/mlx5` guide for more Mellanox OFED details.
 
 - Compilation can be done also with rdma-core v15+.
doc/guides/rel_notes/release_21_11.rst +4 -0
index 9bf4479002..490a8859d7 100644
@@ -401,6 +401,10 @@ New Features
   overruns in C/C++ programs, and other similar errors, as well as
   printing out detailed debug information whenever an error is detected.
 
+* **Updated mlx5 crypto driver.**
+
+  * Added support for BF2.
+  * Added support for CX6DX.
 
 Removed Items
 -------------
drivers/crypto/mlx5/mlx5_crypto.c +8 -0
index 038526c023..316cb46ebf 100644
@@ -1034,6 +1034,14 @@ static const struct rte_pci_id mlx5_crypto_pci_id_map[] = {
 			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
 					PCI_DEVICE_ID_MELLANOX_CONNECTX6)
 		},
+		{
+			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+					PCI_DEVICE_ID_MELLANOX_CONNECTX6DX)
+		},
+		{
+			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+					PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF)
+		},
 		{
 			.vendor_id = 0
 		}
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 crypto/mlx5: support BF2 and ConnectX6-DX devices

Starting from MLNX_OFED 5.5. version, the BlueField2 and ConnextX6-DX adapters support crypto operations.

Add them to the supported PCI devices list.

---
dependant on https://patchwork.dpdk.org/project/dpdk/cover/[email protected]/
V2: fix checkpatch warning.

 doc/guides/cryptodevs/mlx5.rst         | 6 +++++-
 doc/guides/rel_notes/release_21_11.rst | 4 ++++
 drivers/crypto/mlx5/mlx5_crypto.c      | 8 ++++++++
 3 files changed, 17 insertions(+), 1 deletion(-)
doc/guides/cryptodevs/mlx5.rst +5 -1
index 9bd8c6fe85..4ca0f7e5ea 100644
@@ -88,6 +88,7 @@ The mlxreg dedicated tool should be used as follows:
   should not be specified.
 
   All the device ports should set it in order to move to operational mode.
+  For BlueField2, also the internal ports in the ARMs system should be set.
 
 - Query CRYPTO_OPERATIONAL register to make sure the device is in Operational
   mode.
@@ -141,6 +142,8 @@ Supported NICs
 --------------
 
 * Mellanox\ |reg| ConnectX\ |reg|-6 200G MCX654106A-HCAT (2x200G)
+* Mellanox\ |reg| BlueField 2 SmartNIC
+* Mellanox\ |reg| ConnectX\ |reg|-6DX
 
 
 Limitations
@@ -158,7 +161,8 @@ Prerequisites
 Linux Prerequisites
 ~~~~~~~~~~~~~~~~~~~
 
-- Mellanox OFED version: **5.3**
+- Mellanox OFED version: starts at 5.3 for ConnectX6.
+  Mellanox OFED version: 5.5 for ConnectX6DX and BF2.
   see :doc:`../../nics/mlx5` guide for more Mellanox OFED details.
 
 - Compilation can be done also with rdma-core v15+.
doc/guides/rel_notes/release_21_11.rst +4 -0
index 9bf4479002..490a8859d7 100644
@@ -401,6 +401,10 @@ New Features
   overruns in C/C++ programs, and other similar errors, as well as
   printing out detailed debug information whenever an error is detected.
 
+* **Updated mlx5 crypto driver.**
+
+  * Added support for BF2.
+  * Added support for CX6DX.
 
 Removed Items
 -------------
drivers/crypto/mlx5/mlx5_crypto.c +8 -0
index 038526c023..316cb46ebf 100644
@@ -1034,6 +1034,14 @@ static const struct rte_pci_id mlx5_crypto_pci_id_map[] = {
 			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
 					PCI_DEVICE_ID_MELLANOX_CONNECTX6)
 		},
+		{
+			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+					PCI_DEVICE_ID_MELLANOX_CONNECTX6DX)
+		},
+		{
+			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+					PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF)
+		},
 		{
 			.vendor_id = 0
 		}
Signature · 1 line
2.17.1
#2 lore raw

PATCH v2 1/1 crypto/mlx5: support BF2 and ConnectX6-DX devices

Starting from MLNX_OFED 5.5. version, the BlueField2 and ConnextX6-DX adapters support crypto operations.

Add them to the supported PCI devices list.

---
dependant on https://patchwork.dpdk.org/project/dpdk/cover/[email protected]/
V2: fixed checkpatch warning.
fixed doc.

 doc/guides/cryptodevs/mlx5.rst         | 6 +++++-
 doc/guides/rel_notes/release_21_11.rst | 4 ++++
 drivers/crypto/mlx5/mlx5_crypto.c      | 8 ++++++++
 3 files changed, 17 insertions(+), 1 deletion(-)
doc/guides/cryptodevs/mlx5.rst +5 -1
index 9bd8c6fe85..ab52dde4ce 100644
@@ -88,6 +88,7 @@ The mlxreg dedicated tool should be used as follows:
   should not be specified.
 
   All the device ports should set it in order to move to operational mode.
+  For BlueField2, also the internal ports in the ARMs system should be set.
 
 - Query CRYPTO_OPERATIONAL register to make sure the device is in Operational
   mode.
@@ -141,6 +142,8 @@ Supported NICs
 --------------
 
 * Mellanox\ |reg| ConnectX\ |reg|-6 200G MCX654106A-HCAT (2x200G)
+* Mellanox\ |reg| BlueField 2 SmartNIC
+* Mellanox\ |reg| ConnectX\ |reg|-6DX
 
 
 Limitations
@@ -158,7 +161,8 @@ Prerequisites
 Linux Prerequisites
 ~~~~~~~~~~~~~~~~~~~
 
-- Mellanox OFED version: **5.3**
+- Mellanox OFED version: **5.3** for ConnectX6.
+  Mellanox OFED version: **5.5** for ConnectX6DX and BF2.
   see :doc:`../../nics/mlx5` guide for more Mellanox OFED details.
 
 - Compilation can be done also with rdma-core v15+.
doc/guides/rel_notes/release_21_11.rst +4 -0
index 9bf4479002..490a8859d7 100644
@@ -401,6 +401,10 @@ New Features
   overruns in C/C++ programs, and other similar errors, as well as
   printing out detailed debug information whenever an error is detected.
 
+* **Updated mlx5 crypto driver.**
+
+  * Added support for BF2.
+  * Added support for CX6DX.
 
 Removed Items
 -------------
drivers/crypto/mlx5/mlx5_crypto.c +8 -0
index 038526c023..316cb46ebf 100644
@@ -1034,6 +1034,14 @@ static const struct rte_pci_id mlx5_crypto_pci_id_map[] = {
 			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
 					PCI_DEVICE_ID_MELLANOX_CONNECTX6)
 		},
+		{
+			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+					PCI_DEVICE_ID_MELLANOX_CONNECTX6DX)
+		},
+		{
+			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+					PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF)
+		},
 		{
 			.vendor_id = 0
 		}
Signature · 1 line
2.17.1
#3 lore raw

07/11/2021 18:29, Raja Zidane:

doc/guides/rel_notes/release_21_11.rst New Features · line 407

Quoted 10 lines
doc/guides/rel_notes/release_21_11.rst +4 -0
@@ -401,6 +401,10 @@ New Features
   overruns in C/C++ programs, and other similar errors, as well as
   printing out detailed debug information whenever an error is detected.
 
+* **Updated mlx5 crypto driver.**
+
+  * Added support for BF2.
+  * Added support for CX6DX.

I you don't know where to put something in a list, choosing to put at the end is almost always a bad decision.

In the case of the release notes, the order is described at the beginning. And in this particular case, there is already a matching section:

* **Updated Mellanox mlx5 crypto driver.**

* Added Windows support.

#4 lore raw
In reply to Raja Zidane
Quoted 47 lines

Subject: [dpdk-dev] [PATCH V2] crypto/mlx5: support BF2 and ConnectX6-DX devices

External email: Use caution opening links or attachments

Starting from MLNX_OFED 5.5. version, the BlueField2 and ConnextX6-DX adapters support crypto operations.

Add them to the supported PCI devices list.

---
dependant on
https://patchwork.dpdk.org/project/dpdk/cover/20211104124929.24899-1-
[email protected]/
V2: fixed checkpatch warning.
fixed doc.

 doc/guides/cryptodevs/mlx5.rst         | 6 +++++-
 doc/guides/rel_notes/release_21_11.rst | 4 ++++
 drivers/crypto/mlx5/mlx5_crypto.c      | 8 ++++++++
 3 files changed, 17 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/doc/guides/cryptodevs/mlx5.rst index 9bd8c6fe85..ab52dde4ce 100644

doc/guides/cryptodevs/mlx5.rst +1 -0
@@ -88,6 +88,7 @@ The mlxreg dedicated tool should be used as follows:
   should not be specified.
 
   All the device ports should set it in order to move to operational mode.
+  For BlueField2, also the internal ports in the ARMs system should be set.
 
 - Query CRYPTO_OPERATIONAL register to make sure the device is in

Operational
mode.

doc/guides/cryptodevs/mlx5.rst +2 -0
@@ -141,6 +142,8 @@ Supported NICs
 --------------
 
 * Mellanox\ |reg| ConnectX\ |reg|-6 200G MCX654106A-HCAT (2x200G)
+* Mellanox\ |reg| BlueField 2 SmartNIC
+* Mellanox\ |reg| ConnectX\ |reg|-6DX
 
 
 Limitations

doc/guides/cryptodevs/mlx5.rst Prerequisites · line 166

Quoted 7 lines
doc/guides/cryptodevs/mlx5.rst +2 -1
@@ -158,7 +161,8 @@ Prerequisites
 Linux Prerequisites
 ~~~~~~~~~~~~~~~~~~~
 
-- Mellanox OFED version: **5.3**
+- Mellanox OFED version: **5.3** for ConnectX6.
+  Mellanox OFED version: **5.5** for ConnectX6DX and BF2.
   see :doc:`../../nics/mlx5` guide for more Mellanox OFED details.

Does a new OFED version a Prerequisite for ConnectX6DX and BF2? Doesn't it depend solely on the FW version?

Quoted 41 lines
doc/guides/cryptodevs/mlx5.rst +0 -0
 - Compilation can be done also with rdma-core v15+.
doc/guides/rel_notes/release_21_11.rst +4 -0
index 9bf4479002..490a8859d7 100644
@@ -401,6 +401,10 @@ New Features
   overruns in C/C++ programs, and other similar errors, as well as
   printing out detailed debug information whenever an error is detected.
 
+* **Updated mlx5 crypto driver.**
+
+  * Added support for BF2.
+  * Added support for CX6DX.
 
 Removed Items
 -------------
drivers/crypto/mlx5/mlx5_crypto.c +8 -0
index 038526c023..316cb46ebf 100644
@@ -1034,6 +1034,14 @@ static const struct rte_pci_id
 mlx5_crypto_pci_id_map[] = {
                        RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
                                        PCI_DEVICE_ID_MELLANOX_CONNECTX6)
                },
+               {
+                       RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+                                       PCI_DEVICE_ID_MELLANOX_CONNECTX6DX)
+               },
+               {
+                       RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+                                       PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF)
+               },
                {
                        .vendor_id = 0
                }

--
2.17.1

#5 lore raw

PATCH v3 1/1 crypto/mlx5: support BF2 and ConnectX6-DX devices

In reply to Raja Zidane

Starting from MLNX_OFED 5.5. version, the BlueField2 and ConnextX6-DX adapters support crypto operations.

Add them to the supported PCI devices list.

---
dependant on https://patchwork.dpdk.org/project/dpdk/cover/[email protected]/
V2: fixed checkpatch warning.
V3: fixed doc.

 doc/guides/cryptodevs/mlx5.rst         | 11 ++++++++++-
 doc/guides/rel_notes/release_21_11.rst |  2 +-
 drivers/crypto/mlx5/mlx5_crypto.c      |  8 ++++++++
 3 files changed, 19 insertions(+), 2 deletions(-)
doc/guides/cryptodevs/mlx5.rst +10 -1
index 9bd8c6fe85..fe18a20717 100644
@@ -88,6 +88,7 @@ The mlxreg dedicated tool should be used as follows:
   should not be specified.
 
   All the device ports should set it in order to move to operational mode.
+  For BlueField2, also the internal ports in the ARMs system should be set.
 
 - Query CRYPTO_OPERATIONAL register to make sure the device is in Operational
   mode.
@@ -141,6 +142,8 @@ Supported NICs
 --------------
 
 * Mellanox\ |reg| ConnectX\ |reg|-6 200G MCX654106A-HCAT (2x200G)
+* Mellanox\ |reg| BlueField 2 SmartNIC
+* Mellanox\ |reg| ConnectX\ |reg|-6DX
 
 
 Limitations
@@ -155,10 +158,16 @@ Limitations
 Prerequisites
 -------------
 
+FW Prerequisites
+~~~~~~~~~~~~~~~~
+
+- xx.31.0328 for ConnectX6.
+- xx.32.0108 for ConnectX6DX and BlueField2.
+
 Linux Prerequisites
 ~~~~~~~~~~~~~~~~~~~
 
-- Mellanox OFED version: **5.3**
+- Mellanox OFED version: **5.3**.
   see :doc:`../../nics/mlx5` guide for more Mellanox OFED details.
 
 - Compilation can be done also with rdma-core v15+.
doc/guides/rel_notes/release_21_11.rst +1 -1
index 8da19c613a..2c4f601cef 100644
@@ -285,6 +285,7 @@ New Features
 * **Updated Mellanox mlx5 crypto driver.**
 
   * Added Windows support.
+  * Added support for BF2 and CX6DX.
 
 * **Updated NXP dpaa_sec crypto PMD.**
 
@@ -410,7 +411,6 @@ New Features
   overruns in C/C++ programs, and other similar errors, as well as
   printing out detailed debug information whenever an error is detected.
 
-
 Removed Items
 -------------
 
drivers/crypto/mlx5/mlx5_crypto.c +8 -0
index 3caa22f35f..47da3d115b 100644
@@ -994,6 +994,14 @@ static const struct rte_pci_id mlx5_crypto_pci_id_map[] = {
 			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
 					PCI_DEVICE_ID_MELLANOX_CONNECTX6)
 		},
+		{
+			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+					PCI_DEVICE_ID_MELLANOX_CONNECTX6DX)
+		},
+		{
+			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+					PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF)
+		},
 		{
 			.vendor_id = 0
 		}
Signature · 1 line
2.17.1
#6 lore raw
Quoted 8 lines

Subject: [dpdk-dev] [PATCH V3] crypto/mlx5: support BF2 and ConnectX6-DX devices

External email: Use caution opening links or attachments

Starting from MLNX_OFED 5.5. version, the BlueField2 and ConnextX6-DX adapters support crypto operations.

"Starting from FW version xx.32.0108..."

Quoted 5 lines

Add them to the supported PCI devices list.

#7 lore raw

PATCH v4 1/1 crypto/mlx5: support BF2 and ConnectX6-DX devices

In reply to Raja Zidane

Starting from FW version xx.32.0108. version, the BlueField2 and ConnextX6-DX adapters support crypto operations.

Add them to the supported PCI devices list.

---
V2: fixed checkpatch warning.
V3: fixed doc.
V4: fixed commit log.

 doc/guides/cryptodevs/mlx5.rst         | 11 ++++++++++-
 doc/guides/rel_notes/release_21_11.rst |  2 +-
 drivers/crypto/mlx5/mlx5_crypto.c      |  8 ++++++++
 3 files changed, 19 insertions(+), 2 deletions(-)
doc/guides/cryptodevs/mlx5.rst +10 -1
index 9bd8c6fe85..fe18a20717 100644
@@ -88,6 +88,7 @@ The mlxreg dedicated tool should be used as follows:
   should not be specified.
 
   All the device ports should set it in order to move to operational mode.
+  For BlueField2, also the internal ports in the ARMs system should be set.
 
 - Query CRYPTO_OPERATIONAL register to make sure the device is in Operational
   mode.
@@ -141,6 +142,8 @@ Supported NICs
 --------------
 
 * Mellanox\ |reg| ConnectX\ |reg|-6 200G MCX654106A-HCAT (2x200G)
+* Mellanox\ |reg| BlueField 2 SmartNIC
+* Mellanox\ |reg| ConnectX\ |reg|-6DX
 
 
 Limitations
@@ -155,10 +158,16 @@ Limitations
 Prerequisites
 -------------
 
+FW Prerequisites
+~~~~~~~~~~~~~~~~
+
+- xx.31.0328 for ConnectX6.
+- xx.32.0108 for ConnectX6DX and BlueField2.
+
 Linux Prerequisites
 ~~~~~~~~~~~~~~~~~~~
 
-- Mellanox OFED version: **5.3**
+- Mellanox OFED version: **5.3**.
   see :doc:`../../nics/mlx5` guide for more Mellanox OFED details.
 
 - Compilation can be done also with rdma-core v15+.
doc/guides/rel_notes/release_21_11.rst +1 -1
index 01923e2deb..96d14e01fd 100644
@@ -291,6 +291,7 @@ New Features
 * **Updated Mellanox mlx5 crypto driver.**
 
   * Added Windows support.
+  * Added support for BF2 and CX6DX.
 
 * **Updated NXP dpaa_sec crypto PMD.**
 
@@ -416,7 +417,6 @@ New Features
   overruns in C/C++ programs, and other similar errors, as well as
   printing out detailed debug information whenever an error is detected.
 
-
 Removed Items
 -------------
 
drivers/crypto/mlx5/mlx5_crypto.c +8 -0
index 3caa22f35f..47da3d115b 100644
@@ -994,6 +994,14 @@ static const struct rte_pci_id mlx5_crypto_pci_id_map[] = {
 			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
 					PCI_DEVICE_ID_MELLANOX_CONNECTX6)
 		},
+		{
+			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+					PCI_DEVICE_ID_MELLANOX_CONNECTX6DX)
+		},
+		{
+			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+					PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF)
+		},
 		{
 			.vendor_id = 0
 		}
Signature · 1 line
2.17.1
Acked-by on v4 1/1
#8 lore raw
Quoted 104 lines

Subject: [dpdk-dev] [PATCH V4] crypto/mlx5: support BF2 and ConnectX6-DX devices

External email: Use caution opening links or attachments

Starting from FW version xx.32.0108. version, the BlueField2 and ConnextX6- DX adapters support crypto operations.

Add them to the supported PCI devices list.

---
V2: fixed checkpatch warning.
V3: fixed doc.
V4: fixed commit log.

 doc/guides/cryptodevs/mlx5.rst         | 11 ++++++++++-
 doc/guides/rel_notes/release_21_11.rst |  2 +-
 drivers/crypto/mlx5/mlx5_crypto.c      |  8 ++++++++
 3 files changed, 19 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/doc/guides/cryptodevs/mlx5.rst index 9bd8c6fe85..fe18a20717 100644

doc/guides/cryptodevs/mlx5.rst +1 -0
@@ -88,6 +88,7 @@ The mlxreg dedicated tool should be used as follows:
   should not be specified.
 
   All the device ports should set it in order to move to operational mode.
+  For BlueField2, also the internal ports in the ARMs system should be set.
 
 - Query CRYPTO_OPERATIONAL register to make sure the device is in

Operational
mode.

doc/guides/cryptodevs/mlx5.rst +9 -1
@@ -141,6 +142,8 @@ Supported NICs
 --------------
 
 * Mellanox\ |reg| ConnectX\ |reg|-6 200G MCX654106A-HCAT (2x200G)
+* Mellanox\ |reg| BlueField 2 SmartNIC
+* Mellanox\ |reg| ConnectX\ |reg|-6DX
 
 
 Limitations
@@ -155,10 +158,16 @@ Limitations
 Prerequisites
 -------------
 
+FW Prerequisites
+~~~~~~~~~~~~~~~~
+
+- xx.31.0328 for ConnectX6.
+- xx.32.0108 for ConnectX6DX and BlueField2.
+
 Linux Prerequisites
 ~~~~~~~~~~~~~~~~~~~
 
-- Mellanox OFED version: **5.3**
+- Mellanox OFED version: **5.3**.
   see :doc:`../../nics/mlx5` guide for more Mellanox OFED details.
 
 - Compilation can be done also with rdma-core v15+.
doc/guides/rel_notes/release_21_11.rst +1 -1
index 01923e2deb..96d14e01fd 100644
@@ -291,6 +291,7 @@ New Features
 * **Updated Mellanox mlx5 crypto driver.**
 
   * Added Windows support.
+  * Added support for BF2 and CX6DX.
 
 * **Updated NXP dpaa_sec crypto PMD.**
 
@@ -416,7 +417,6 @@ New Features
   overruns in C/C++ programs, and other similar errors, as well as
   printing out detailed debug information whenever an error is detected.
 
-
 Removed Items
 -------------
 
drivers/crypto/mlx5/mlx5_crypto.c +8 -0
index 3caa22f35f..47da3d115b 100644
@@ -994,6 +994,14 @@ static const struct rte_pci_id
 mlx5_crypto_pci_id_map[] = {
                        RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
                                        PCI_DEVICE_ID_MELLANOX_CONNECTX6)
                },
+               {
+                       RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+                                       PCI_DEVICE_ID_MELLANOX_CONNECTX6DX)
+               },
+               {
+                       RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+                                       PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF)
+               },
                {
                        .vendor_id = 0
                }
Quoted 2 lines

--
2.17.1

#9 lore raw
In reply to Raja Zidane
Quoted 23 lines

Starting from FW version xx.32.0108. version, the BlueField2 and ConnextX6- DX
adapters support crypto operations.

Add them to the supported PCI devices list.

---
V2: fixed checkpatch warning.
V3: fixed doc.
V4: fixed commit log.

 doc/guides/cryptodevs/mlx5.rst         | 11 ++++++++++-
 doc/guides/rel_notes/release_21_11.rst |  2 +-
 drivers/crypto/mlx5/mlx5_crypto.c      |  8 ++++++++
 3 files changed, 19 insertions(+), 2 deletions(-)
doc/guides/cryptodevs/mlx5.rst +0 -0
index 9bd8c6fe85..fe18a20717 100644

doc/guides/cryptodevs/mlx5.rst The mlxreg dedicated tool should be used as follows: · line 91

Quoted 4 lines
doc/guides/cryptodevs/mlx5.rst +1 -0
@@ -88,6 +88,7 @@ The mlxreg dedicated tool should be used as follows:
   should not be specified.
 
   All the device ports should set it in order to move to operational mode.
+  For BlueField2, also the internal ports in the ARMs system should be set.

Rephrase it to
For BlueField2, the internal ports in the ARMs system should also be set.

Quoted 37 lines
doc/guides/cryptodevs/mlx5.rst +0 -0
 - Query CRYPTO_OPERATIONAL register to make sure the device is in

Operational
mode.

doc/guides/cryptodevs/mlx5.rst +9 -1
@@ -141,6 +142,8 @@ Supported NICs
 --------------
 
 * Mellanox\ |reg| ConnectX\ |reg|-6 200G MCX654106A-HCAT (2x200G)
+* Mellanox\ |reg| BlueField 2 SmartNIC
+* Mellanox\ |reg| ConnectX\ |reg|-6DX
 
 
 Limitations
@@ -155,10 +158,16 @@ Limitations
 Prerequisites
 -------------
 
+FW Prerequisites
+~~~~~~~~~~~~~~~~
+
+- xx.31.0328 for ConnectX6.
+- xx.32.0108 for ConnectX6DX and BlueField2.
+
 Linux Prerequisites
 ~~~~~~~~~~~~~~~~~~~
 
-- Mellanox OFED version: **5.3**
+- Mellanox OFED version: **5.3**.
   see :doc:`../../nics/mlx5` guide for more Mellanox OFED details.
 
 - Compilation can be done also with rdma-core v15+.
doc/guides/rel_notes/release_21_11.rst +0 -0
index 01923e2deb..96d14e01fd 100644

doc/guides/rel_notes/release_21_11.rst New Features · line 294

Quoted 4 lines
doc/guides/rel_notes/release_21_11.rst +1 -0
@@ -291,6 +291,7 @@ New Features
 * **Updated Mellanox mlx5 crypto driver.**
 
   * Added Windows support.
+  * Added support for BF2 and CX6DX.

You may use Bluefield2 and ConnectX6-DX instead.

doc/guides/rel_notes/release_21_11.rst New Features · line 419

Quoted 8 lines
doc/guides/rel_notes/release_21_11.rst +0 -1
 * **Updated NXP dpaa_sec crypto PMD.**
 
@@ -416,7 +417,6 @@ New Features
   overruns in C/C++ programs, and other similar errors, as well as
   printing out detailed debug information whenever an error is detected.
 
-

Do not remove this line.

Quoted 29 lines
doc/guides/rel_notes/release_21_11.rst +0 -0
 Removed Items
 -------------
 
drivers/crypto/mlx5/mlx5_crypto.c +7 -0
index 3caa22f35f..47da3d115b 100644
@@ -994,6 +994,14 @@ static const struct rte_pci_id
 mlx5_crypto_pci_id_map[] = {
 			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
 
 	PCI_DEVICE_ID_MELLANOX_CONNECTX6)
 		},
+		{
+			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+
 	PCI_DEVICE_ID_MELLANOX_CONNECTX6DX)
+		},
+		{
+			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+

PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF)

drivers/crypto/mlx5/mlx5_crypto.c +1 -1
+		},
 		{
 			.vendor_id = 0
 		}
--

2.17.1

#10 lore raw

PATCH v5 1/1 crypto/mlx5: support BF2 and ConnectX6-DX devices

In reply to Raja Zidane

Starting from FW version xx.32.0108. version, the BlueField2 and ConnextX6-DX adapters support crypto operations.

Add them to the supported PCI devices list.

---
V2: fixed checkpatch warning.
V3: fixed doc.
V4: fixed commit log.
V5: fixed doc.

 doc/guides/cryptodevs/mlx5.rst         | 11 ++++++++++-
 doc/guides/rel_notes/release_21_11.rst |  1 +
 drivers/crypto/mlx5/mlx5_crypto.c      |  8 ++++++++
 3 files changed, 19 insertions(+), 1 deletion(-)
doc/guides/cryptodevs/mlx5.rst +10 -1
index 9bd8c6fe85..af85fd2f8f 100644
@@ -88,6 +88,7 @@ The mlxreg dedicated tool should be used as follows:
   should not be specified.
 
   All the device ports should set it in order to move to operational mode.
+  For BlueField2, the internal ports in the ARMs system should also be set.
 
 - Query CRYPTO_OPERATIONAL register to make sure the device is in Operational
   mode.
@@ -141,6 +142,8 @@ Supported NICs
 --------------
 
 * Mellanox\ |reg| ConnectX\ |reg|-6 200G MCX654106A-HCAT (2x200G)
+* Mellanox\ |reg| BlueField 2 SmartNIC
+* Mellanox\ |reg| ConnectX\ |reg|-6DX
 
 
 Limitations
@@ -155,10 +158,16 @@ Limitations
 Prerequisites
 -------------
 
+FW Prerequisites
+~~~~~~~~~~~~~~~~
+
+- xx.31.0328 for ConnectX6.
+- xx.32.0108 for ConnectX6DX and BlueField2.
+
 Linux Prerequisites
 ~~~~~~~~~~~~~~~~~~~
 
-- Mellanox OFED version: **5.3**
+- Mellanox OFED version: **5.3**.
   see :doc:`../../nics/mlx5` guide for more Mellanox OFED details.
 
 - Compilation can be done also with rdma-core v15+.
doc/guides/rel_notes/release_21_11.rst +1 -0
index 01923e2deb..393ff492ef 100644
@@ -291,6 +291,7 @@ New Features
 * **Updated Mellanox mlx5 crypto driver.**
 
   * Added Windows support.
+  * Added support for Bluefield2 and ConnectX6-DX.
 
 * **Updated NXP dpaa_sec crypto PMD.**
 
drivers/crypto/mlx5/mlx5_crypto.c +8 -0
index 3caa22f35f..47da3d115b 100644
@@ -994,6 +994,14 @@ static const struct rte_pci_id mlx5_crypto_pci_id_map[] = {
 			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
 					PCI_DEVICE_ID_MELLANOX_CONNECTX6)
 		},
+		{
+			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+					PCI_DEVICE_ID_MELLANOX_CONNECTX6DX)
+		},
+		{
+			RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+					PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF)
+		},
 		{
 			.vendor_id = 0
 		}
Signature · 1 line
2.17.1
Applied
#11 lore raw
Quoted 24 lines

Starting from FW version xx.32.0108. version, the BlueField2 and ConnextX6-DX adapters support crypto operations.

Add them to the supported PCI devices list.

---
V2: fixed checkpatch warning.
V3: fixed doc.
V4: fixed commit log.
V5: fixed doc.

 doc/guides/cryptodevs/mlx5.rst         | 11 ++++++++++-
 doc/guides/rel_notes/release_21_11.rst |  1 +
 drivers/crypto/mlx5/mlx5_crypto.c      |  8 ++++++++
 3 files changed, 19 insertions(+), 1 deletion(-)
doc/guides/cryptodevs/mlx5.rst +0 -0
index 9bd8c6fe85..af85fd2f8f 100644

doc/guides/cryptodevs/mlx5.rst The mlxreg dedicated tool should be used as follows: · line 91

Quoted 4 lines
doc/guides/cryptodevs/mlx5.rst +1 -0
@@ -88,6 +88,7 @@ The mlxreg dedicated tool should be used as follows:
   should not be specified.
 
   All the device ports should set it in order to move to operational mode.
+  For BlueField2, the internal ports in the ARMs system should also be set.

Changed ARMs -> ARM as reported by spell check.

Applied to dpdk-next-crypto