@yipingwang, thank you for the reply,
Please note that in our custom board we are using 4GB DDR4 (The ram section is copied from LS1046AFRWY, i.e MT40A512M16LY is being used)
And in our board fm1-mac3 and fm1-mac4 is dedicated to DPDK(for Traffic handling) and fm1-mac5 and fm1-mac6 is dedicated to Kernel(For Configuration purpose)
With above setup, please let me know what is the optimal settings for hugepage configurations, if below settings can be used
setenv othbootargs bportals=s0 qportals=s0 isolcpus=1-3 default_hugepagesz=1024m hugepagesz=1024m hugepages=2 nmi_watchdog=0 rcupdate.rcu_cpu_stall_suppress=1
or below settings can be used
setenv othbootargs bportals=s0 qportals=s0 isolcpus=1-3 default_hugepagesz=2MB hugepagesz=2MB hugepages=1024 nmi_watchdog=0 rcupdate.rcu_cpu_stall_suppress=1
or it needs to be modified.
Also, we referred DPDK programers manual to run below comands, but we got vdev creation error,
dpdk-l2fwd-crypto -l 0-1 --vdev "crypto_aesni_mb0" \
--vdev "crypto_aesni_mb1" -- -p 0x3 --chain CIPHER_HASH \
--cipher_op ENCRYPT --cipher_algo aes-cbc \
--cipher_key 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f \
--auth_op GENERATE --auth_algo aes-xcbc-mac \
--auth_key 10:11:12:13:14:15:16:17:18:19:1a:1b:1c:1d:1e:1f
so, can we use below commands to Encrypt in one device
dpdk-l2fwd-crypto --vdev "crypto_openssl0" -v -c 0x8 -n 1 -- -p 0x20 -q 1 --chain CIPHER_ONLY --cryptodev_mask 0x10 --cipher_algo aes-cbc --cipher_op ENCRYPT --cipher_key 01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f:10
And below commands in another device to Decrypt
dpdk-l2fwd-crypto --vdev "crypto_openssl0" -v -c 0x8 -n 1 -- -p 0x20 -q 1 --chain CIPHER_ONLY --cryptodev_mask 0x10 --cipher_algo aes-cbc --cipher_op DECRYPT --cipher_key 01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f:10
Also as per my understanding above commands use the S/W engine to encrypt, what commnads can be used to make use of the Sec Hardware of LS1046A.
Please provide your help.
Thank u.