IPSec Demo in LX2160ARDB

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IPSec Demo in LX2160ARDB

205 次查看
lucasgm
Contributor II

Hello,

I have acquired two LX2160ARDB dev board and I'm trying to setup an IPSec demo, following the instruction in `Running IPSec gateway application with 16 Cores on LX2 platform` section in this guide: https://docs.nxp.com/bundle/GUID-1441E561-3EAD-47FD-A50D-72E1A4E4D69E/page/GUID-9B14728A-B012-48BC-8...

However, when I run the following command:

 

dpdk-ipsec-secgw -c 0xFFFF -n 1 -- -p 0xf -P -u 0xa --config="(0,0,0),(0,1,1),(0,2,2),(0,3,3),(1,0,4),(1,1,5),(1,2,6),(1,3,7),(2,0,8),(2,1,9),(2,2,10),(2,3,11),(3,0,12),(3,1,13),(3,2,14),(3,3,15)" -f /usr/local/dpdk/ipsec/ep0_64X64_sha256_proto.cfg

 


I get the following error:

 

EAL: Detected 16 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: No available hugepages reported in hugepages-32768kB
EAL: No available hugepages reported in hugepages-64kB
EAL: No available hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: No legacy callbacks, legacy socket not created
Promiscuous mode selected
librte_ipsec usage: disabled
replay window size: 0
ESN: disabled
SA flags: 0
Frag TTL: 10000000000 ns
port 0 is not present on the board
EAL: Error - exiting with code: 1
Cause: check_poll_mode_params failed

 


I also tried to use the DPDK test example that comes in the DPDK repository, here: https://github.com/nxp-qoriq/dpdk/tree/LSDK-21.08/examples/ipsec-secgw/test
In that case, I get the following error:

 

+ stdbuf -o0 /usr/local/bin/dpdk-ipsec-secgw --lcores=0 -n 4 --vdev=crypto_aesni_mb0 --vdev=net_tap0,mac=fixed eth0 -- -p 0x3 -u 1 -P '--config=(0,0,0),(1,0,0)' -f /tmp/tmp.kPgZZI7hsi
EAL: Detected 16 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Detected static linkage of DPDK
EAL: failed to parse device "crypto_aesni_mb0"
EAL: Unable to parse device 'crypto_aesni_mb0'
EAL: Error - exiting with code: 1
Cause: Invalid EAL parameters

 


I have found out in the DPDK documentation (here https://doc.dpdk.org/guides/cryptodevs/aesni_mb.html), section 2.5, that it requires intel code: https://github.com/intel/intel-ipsec-mb which I was not able to build for ARM64.

I tried to change the `CRYPTO_DEV` environment variable to `crypto_openssl` or `crypto_null`, but without success. In that case, I get the same erros as the first example.

Someone have any idea how to setup this demo?

I'm using LSDK 21.08 and the kernel config is attached.

0 项奖励
1 回复

164 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Linux CAAM driver has been built as a kernel module, it must be loaded with command "insmod caam_jr.ko" in kernel before running DPDK application.

0 项奖励