Hello,
I’m trying to use Mellanox ConnectX-6 NICs along with DPDK. I’m unable to execute the sample applications as specified in this docs: [15. NVIDIA MLX5 Crypto Driver — Data Plane Development Kit 23.03.0-rc1 documentation (dpdk.org)]
(https://doc.dpdk.org/guides/cryptodevs/mlx5.html). DPDK is not able to detect the mellanox crypto driver at all.
I’m using MLNX_OFED_LINUX-5.9-0.5.6.0 (OFED-5.9-0.5.6) driver along with ConnectX-6 Dx NIC.
Moreover, I’m unable to get/set registers on the crypto device for wrapped/plaintext configuration. Here is a sample error:
node-0:~> sudo mlxreg -d /dev/mst/mt4119_pciconf0.1 --reg_name CRYPTO_OPERATIONAL --get
Sending access register…
-E- Failed to send access register: ME_ICMD_OPERATIONAL_ERROR
Here are the logs from execution of the DPDK application:
node-0:~> sudo ./dpdk/build/app/test/dpdk-test -c 1 -n 1 -a ca:00.0,class=crypto cryptodev_mlx5_autotest – --driver-name mlx5EAL: PCI device 0000:ca:00.0 on NUMA socket 1
mlx5_pci
EAL: Probe PCI driver: mlx5_pci (15b3:101d) device: 0000:ca:00.0 (socket 1)EAL: Detected CPU lcores: 128
EAL: Detected NUMA nodes: 2
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode ‘PA’
EAL: VFIO support initialized
EAL: Probe PCI driver: mlx5_pci (15b3:101d) device: 0000:ca:00.0 (socket 1)
mlx5_crypto: Not enough capabilities to support crypto operations, maybe old FW/OFED version?
mlx5_common: Failed to load driver crypto_mlx5
EAL: Requested device 0000:ca:00.0 cannot be used
EAL: Bus (pci) probe failed.
TELEMETRY: No legacy callbacks, legacy socket not created
APP: HPET is not enabled, using TSC as default timer
APP: Invalid test requested: ‘–driver-name’
APP: Invalid test requested: ‘mlx5EAL:’
APP: Invalid test requested: ‘PCI’
APP: Invalid test requested: ‘device’
APP: Invalid test requested: ‘0000:ca:00.0’
APP: Invalid test requested: ‘on’
APP: Invalid test requested: ‘NUMA’
APP: Invalid test requested: ‘socket’
APP: Invalid test requested: ‘1’
RTE>>cryptodev_mlx5_autotest
- ------------------------------------------------------- +
- Test Suite : Cryptodev Unit Test Suite
USER1: No crypto devices found? - ------------------------------------------------------- +
- Test Suite Summary : Cryptodev Unit Test Suite
- ------------------------------------------------------- +
- AES Chain : 0/57 passed, 57/57 skipped, 0/57 failed, 0/57 unsupported
- AES Cipher Only : 0/65 passed, 65/65 skipped, 0/65 failed, 0/65 unsupported
- AES Docsis : 0/24 passed, 24/24 skipped, 0/24 failed, 0/24 unsupported
- 3DES Chain : 0/20 passed, 20/20 skipped, 0/20 failed, 0/20 unsupported
- 3DES Cipher Only : 0/10 passed, 10/10 skipped, 0/10 failed, 0/10 unsupported
- DES Cipher Only : 0/2 passed, 2/2 skipped, 0/2 failed, 0/2 unsupported
- DES Docsis : 0/12 passed, 12/12 skipped, 0/12 failed, 0/12 unsupported
- Auth Only : 0/36 passed, 36/36 skipped, 0/36 failed, 0/36 unsupported
- Multi Session Unit Test Suite : 0/2 passed, 2/2 skipped, 0/2 failed, 0/2 unsupported
- NULL Test Suite : 0/2 passed, 2/2 skipped, 0/2 failed, 0/2 unsupported
- AES CCM Authenticated Test Suite : 0/18 passed, 18/18 skipped, 0/18 failed, 0/18 unsupported
- AES GCM Authenticated Test Suite : 0/58 passed, 58/58 skipped, 0/58 failed, 0/58 unsupported
- AES GMAC Authentication Test Suite : 0/12 passed, 12/12 skipped, 0/12 failed, 0/12 unsupported
- SNOW 3G Test Suite : 0/47 passed, 47/47 skipped, 0/47 failed, 0/47 unsupported
- Chacha20-Poly1305 Test Suite : 0/3 passed, 3/3 skipped, 0/3 failed, 0/3 unsupported
- ZUC Test Suite : 0/31 passed, 31/31 skipped, 0/31 failed, 0/31 unsupported
- HMAC_MD5 Authentication Test Suite : 0/4 passed, 4/4 skipped, 0/4 failed, 0/4 unsupported
- Kasumi Test Suite : 0/36 passed, 36/36 skipped, 0/36 failed, 0/36 unsupported
- ESN Test Suite : 0/2 passed, 2/2 skipped, 0/2 failed, 0/2 unsupported
- Negative AES GCM Test Suite : 0/12 passed, 12/12 skipped, 0/12 failed, 0/12 unsupported
- Negative AES GMAC Test Suite : 0/2 passed, 2/2 skipped, 0/2 failed, 0/2 unsupported
- Mixed CIPHER + HASH algorithms Test Suite : 0/32 passed, 32/32 skipped, 0/32 failed, 0/32 unsupported
- Negative HMAC SHA1 Unit Test Suite : 0/4 passed, 4/4 skipped, 0/4 failed, 0/4 unsupported
- Crypto General Unit Test Suite : 0/6 passed, 6/6 skipped, 0/6 failed, 0/6 unsupported
- IPsec Proto Unit Test Suite : 0/59 passed, 59/59 skipped, 0/59 failed, 0/59 unsupported
- PDCP Proto Unit Test Suite : 0/1 passed, 1/1 skipped, 0/1 failed, 0/1 unsupported
- DOCSIS Proto Unit Test Suite : 0/52 passed, 52/52 skipped, 0/52 failed, 0/52 unsupported
- ------------------------------------------------------- +
- Sub Testsuites Total : 27
- Sub Testsuites Skipped : 27
- Sub Testsuites Passed : 0
- Sub Testsuites Failed : 0
- ------------------------------------------------------- +
- Tests Total : 609
- Tests Skipped : 609
- Tests Executed : 0
- Tests Unsupported: 0
- Tests Passed : 0
- Tests Failed : 0
- ------------------------------------------------------- +
Test Skipped
Any guidance is much appreciated.