Hi, I am trying to get DPDK crypto ciphering working with an LS1046A but find that the call to rte_vdev_init is failing returning "No such file or directory”. I am requesting the crypto_dpaa_sec driver when calling rte_vdev_init.
I am following the example code from Crypto Dev Guide and have verified this works ok with x86 platforms when using the crypto_aesni_mb0 driver.
I am passing the following args to rte_vdev_init:
--log-level=eal,8 -d librte_pmd_dpaa_sec.so -d librte_mempool_ring.so -d librte_bus_dpaa.so
The LS1046A kernel has been built with:
CONFIG_CRYPTO_DEV_FSL_CAAM_COMMON=y
CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC=y
CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_JR_UIO=y
My application will perform ciphering independently from the network stack using:
rte_cryptodev_enqueue_burst
rte_cryptodev_dequeue_burst
Again this works fine with an x86 when using the crypto_aesni_mb0 driver.
Can anyone offer any advice as to how to get DPDK working with crypto_dpaa_sec on an LS1046A or why rte_vdev_init might be failing with the "No such file or directory” error?
When run with strace I notice just before the failure I see the following fstat call which may have nothing to do with the problem.
fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0I am attaching the small program I used to test this and it's output.
Thanks.