Does AES-GCM-128 Hardware Crypto accessible in DPDK

Hi Everyone,

I tried out AES-GCM Decrypt on Bluefield-3 with Crypto-enabled. And it works fine.

However, I have all of my code written in DPDK. Is there any way to access hardware-crypto in DPDK?

Thank you,
Tuan.

Hi tuan

Please check :
https://doc.dpdk.org/guides/cryptodevs/mlx5.html

Thank you
Meng, Shi

1 Like

I ran into issue when trying to query the crypto operational mode. Do you know how can I fix it? Thank you!

root@bf:/home/ubuntu# mlxreg -d /dev/mst/mt41692_pciconf0 --reg_name CRYPTO_OPERATIONAL --get

Sending access register...

-E- Failed to send access register: ICMD error 0x3: ICMD operational error, Please check icmd.ctrl.status field

It’s been a while, do you have any suggestion?

I tried to test with the dpdk came with Bluefield-OS, but it doesn’t work

./dpdk-test-crypto-perf – --devtype crypto_mlx5
EAL: Detected CPU lcores: 16
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode ‘VA’
EAL: Probe PCI driver: mlx5_pci (15b3:a2dc) device: 0000:03:00.0 (socket -1)
EAL: Probe PCI driver: mlx5_pci (15b3:a2dc) device: 0000:03:00.1 (socket -1)
TELEMETRY: No legacy callbacks, legacy socket not created
No crypto devices type crypto_mlx5 available