DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Using l2fwd-crypto sample app
@ 2021-01-08  9:08 Das, Surajit
  2021-01-10 21:00 ` Das, Surajit
  0 siblings, 1 reply; 2+ messages in thread
From: Das, Surajit @ 2021-01-08  9:08 UTC (permalink / raw)
  To: users; +Cc: Dharwadkar, Sriram

Hi DPDK Experts,

We are working on expanding our DPDK application to do IPSec based encryption.
To that end I was trying out the sample application provided.
But, I am hitting an error which is probably configuration related.

My DPDK version:
dpdk-stable-19.11.5
OS: CentOS Linux release 7.7.1908 (Core)
Kernel: 3.10.0-1062.el7.x86_64

Command run with options and output:
./l2fwd-crypto -l 0-1 -n 4 --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
EAL: Detected 8 lcore(s)
EAL: Detected 1 NUMA nodes
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 arguments


I am not sure what is causing the error failed to parse device "crypto_aesni_mb0"
Is there a specific driver that needs to be loaded? Or is there a hardware dependency?
I am using virtio nic to test out the app.
Please suggest if the info I have provided is sufficient to determine the cause?

NIC and driver details:

Network devices using DPDK-compatible driver
============================================
0000:00:04.0 'Virtio network device 1000' drv=uio_pci_generic unused=virtio_pci
0000:00:05.0 'Virtio network device 1000' drv=uio_pci_generic unused=virtio_pci
0000:00:06.0 'Virtio network device 1000' drv=uio_pci_generic unused=virtio_pci
0000:00:07.0 'Virtio network device 1000' drv=uio_pci_generic unused=virtio_pci

00:04.0 Ethernet controller: Red Hat, Inc. Virtio network device
     Subsystem: Red Hat, Inc. Device 0001
     Physical Slot: 4
     Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
     Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
     Interrupt: pin A routed to IRQ 11
     Region 0: I/O ports at c060 [size=32]
     Region 1: Memory at febd2000 (32-bit, non-prefetchable) [size=4K]
     Expansion ROM at feac0000 [disabled] [size=256K]
     Capabilities: [40] MSI-X: Enable- Count=3 Masked-
           Vector table: BAR=1 offset=00000000
           PBA: BAR=1 offset=00000800
     Kernel driver in use: uio_pci_generic
     Kernel modules: virtio_pci

Processor details:
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                8
On-line CPU(s) list:   0-7
Thread(s) per core:    1
Core(s) per socket:    8
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 44
Model name:            Westmere E56xx/L56xx/X56xx (Nehalem-C)
Stepping:              1
CPU MHz:               2693.676
BogoMIPS:              5387.35
Hypervisor vendor:     KVM
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              4096K
NUMA node0 CPU(s):     0-7
Flags:                 fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx lm constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes hypervisor lahf_lm md_clear

Regards,
Surajit

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-users] Using l2fwd-crypto sample app
  2021-01-08  9:08 [dpdk-users] Using l2fwd-crypto sample app Das, Surajit
@ 2021-01-10 21:00 ` Das, Surajit
  0 siblings, 0 replies; 2+ messages in thread
From: Das, Surajit @ 2021-01-10 21:00 UTC (permalink / raw)
  To: users; +Cc: Dharwadkar, Sriram

Hi,

I found why I could not get l2fwd-crypto to run.

The steps to get it to work is as below:

wget https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.gz
tar -xvf nasm-2.15.05.tar.gz
cd nasm-2.15.05
./configure
make
make install

cd
git clone https://github.com/intel/intel-ipsec-mb.git
cd intel-ipsec-mb
make
make install
export AESNI_MULTI_BUFFER_LIB_PATH=`pwd`
cd
make config T=x86_64-native-linux-gcc
sed -i ‘s/CONFIG_RTE_LIBRTE_PMD_AESNI_MB=n/CONFIG_RTE_LIBRTE_PMD_AESNI_MB=y/g’ ./build/.config
make test-build -j
./build/app/test -l 3 -n 4 --vdev "crypto_aesni_mb"
cd examples/l2fwd-crypto/
export RTE_SDK="/root/dpdk-stable-19.11.5"
make
./build/l2fwd-crypto -l 1 -n 4 --vdev="crypto_aesni_mb" -- -p 1 --cdev SW --chain CIPHER_HASH --cipher_algo "aes-cbc" --auth_algo "sha1-hmac"


I just wish to understand if this is not the right forum to ask these kind of queries.
If it is not, can someone point me to the right place for any further questions regarding crypto libraries in DPDK?

Thanks and Regards,
Surajit

From: Das, Surajit <Surajit.Das@commscope.com>
Date: Friday, 8 January 2021 at 2:38 PM
To: users@dpdk.org <users@dpdk.org>
Cc: Dharwadkar, Sriram <Sriram.Dharwadkar@commscope.com>
Subject: Using l2fwd-crypto sample app
Hi DPDK Experts,

We are working on expanding our DPDK application to do IPSec based encryption.
To that end I was trying out the sample application provided.
But, I am hitting an error which is probably configuration related.

My DPDK version:
dpdk-stable-19.11.5
OS: CentOS Linux release 7.7.1908 (Core)
Kernel: 3.10.0-1062.el7.x86_64

Command run with options and output:
./l2fwd-crypto -l 0-1 -n 4 --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
EAL: Detected 8 lcore(s)
EAL: Detected 1 NUMA nodes
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 arguments


I am not sure what is causing the error failed to parse device "crypto_aesni_mb0"
Is there a specific driver that needs to be loaded? Or is there a hardware dependency?
I am using virtio nic to test out the app.
Please suggest if the info I have provided is sufficient to determine the cause?

NIC and driver details:

Network devices using DPDK-compatible driver
============================================
0000:00:04.0 'Virtio network device 1000' drv=uio_pci_generic unused=virtio_pci
0000:00:05.0 'Virtio network device 1000' drv=uio_pci_generic unused=virtio_pci
0000:00:06.0 'Virtio network device 1000' drv=uio_pci_generic unused=virtio_pci
0000:00:07.0 'Virtio network device 1000' drv=uio_pci_generic unused=virtio_pci

00:04.0 Ethernet controller: Red Hat, Inc. Virtio network device
     Subsystem: Red Hat, Inc. Device 0001
     Physical Slot: 4
     Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
     Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
     Interrupt: pin A routed to IRQ 11
     Region 0: I/O ports at c060 [size=32]
     Region 1: Memory at febd2000 (32-bit, non-prefetchable) [size=4K]
     Expansion ROM at feac0000 [disabled] [size=256K]
     Capabilities: [40] MSI-X: Enable- Count=3 Masked-
           Vector table: BAR=1 offset=00000000
           PBA: BAR=1 offset=00000800
     Kernel driver in use: uio_pci_generic
     Kernel modules: virtio_pci

Processor details:
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                8
On-line CPU(s) list:   0-7
Thread(s) per core:    1
Core(s) per socket:    8
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 44
Model name:            Westmere E56xx/L56xx/X56xx (Nehalem-C)
Stepping:              1
CPU MHz:               2693.676
BogoMIPS:              5387.35
Hypervisor vendor:     KVM
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              4096K
NUMA node0 CPU(s):     0-7
Flags:                 fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx lm constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes hypervisor lahf_lm md_clear

Regards,
Surajit

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-10 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-08  9:08 [dpdk-users] Using l2fwd-crypto sample app Das, Surajit
2021-01-10 21:00 ` Das, Surajit

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git