DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] pdump alongside the running l2fwd-crypto leads to Segmentation fault (core dumped) Error
       [not found] <17b9f9fd3f01698fa6f014ad54fe5550@ut.ac.ir>
@ 2021-02-16  4:59 ` mirzaei.reza
  0 siblings, 0 replies; only message in thread
From: mirzaei.reza @ 2021-02-16  4:59 UTC (permalink / raw)
  To: dev

Hello, 

I setup the l2fwd-crypto example on dpdk-20.11 according to the
following topology: 

- LC-1 and LC-2 are l2fwd-crypto systems. 

- A and B are two clients. 

A <--> LC-1 <--> LC-2 <--> B 

I used the following command to config LC-1 and LC-2: 

------------------------------------------------------------------ 

./build/l2fwd-crypto -l 0-1 -n 4
--vdev="crypto_aesni_gcm0,socket_id=0,max_nb_sessions=128"
--vdev="crypto_aesni_gcm1,socket_id=1,max_nb_sessions=128" -- -p 0x3
--no-mac-updating --cdev SW --chain AEAD --aead_algo "aes-gcm"
--aead_key 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f --aead_iv
6B:8A:74:C3:D6:4A:0B:C5:F0:4B:18:6B 

------------------------------------------------------------------- 

I set static arp in client systems and test the topology using 'ping'
(from A to B). Everything works fine. 

But, using pdump on LC-1 while ping is running, leads to Segmentation
fault (core dumped). 

-------------------------------------------------------------------- 

./dpdk-pdump -- --pdump 'port=0,queue=*,rx-dev=/tmp/rx.pcap' 

-------------------------------------------------------------------- 

OUTPUTS: 

DPDK-PDUMP 

---------------------------------------------------------------------- 

EAL: Detected 16 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket
/var/run/dpdk/rte/mp_socket_372404_1811cd7dfadb50
EAL: Selected IOVA mode 'PA'
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: Probe PCI driver: net_i40e (8086:158b) device: 0000:06:00.0 (socket
0)
EAL: Probe PCI driver: net_i40e (8086:158b) device: 0000:06:00.1 (socket
0)
CRYPTODEV: Creating cryptodev crypto_aesni_gcm0 

CRYPTODEV: Initialisation parameters - name: crypto_aesni_gcm0,socket
id: 0, max queue pairs: 8
CRYPTODEV: Creating cryptodev crypto_aesni_gcm1 

CRYPTODEV: Initialisation parameters - name: crypto_aesni_gcm1,socket
id: 0, max queue pairs: 8
Port 2 MAC: 02 70 63 61 70 00
core (0), capture for (1) tuples
- port 0 device ((null)) queue 65535
PRIMARY PROCESS IS NO LONGER ACTIVE, EXITING...
EAL: FAILED TO SEND TO (/VAR/RUN/DPDK/RTE/MP_SOCKET) DUE TO CONNECTION
REFUSED
EAL: FAIL TO SEND REQUEST /VAR/RUN/DPDK/RTE/MP_SOCKET:MP_PDUMP
PDUMP_PREPARE_CLIENT_REQUEST(): CLIENT REQUEST FOR PDUMP ENABLE/DISABLE
FAILED
EAL: FAILED TO SEND TO (/VAR/RUN/DPDK/RTE/MP_SOCKET) DUE TO CONNECTION
REFUSED
EAL: FAIL TO SEND REQUEST /VAR/RUN/DPDK/RTE/MP_SOCKET:EAL_DEV_MP_REQUEST
EAL: CANNOT SEND REQUEST TO PRIMARY
EAL: FAILED TO SEND HOTPLUG REQUEST TO PRIMARY
##### PDUMP DEBUG STATS #####
 -PACKETS DEQUEUED: 1
 -PACKETS TRANSMITTED TO VDEV: 1
 -PACKETS FREED: 0 

-------------------------------------------------------------------------


L2FWD-CRYPTO 

-------------------------------------------------------------------------


EAL: Detected 16 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: No available hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: using IOMMU type 1 (Type 1)
EAL: Probe PCI driver: net_i40e (8086:158b) device: 0000:06:00.0 (socket
0)
EAL: Probe PCI driver: net_i40e (8086:158b) device: 0000:06:00.1 (socket
0)
CRYPTODEV: Creating cryptodev crypto_aesni_gcm0 

CRYPTODEV: Initialisation parameters - name: crypto_aesni_gcm0,socket
id: 0, max queue pairs: 8
CRYPTODEV: Creating cryptodev crypto_aesni_gcm1 

CRYPTODEV: Initialisation parameters - name: crypto_aesni_gcm1,socket
id: 0, max queue pairs: 8
EAL: No legacy callbacks, legacy socket not created
MAC updating disabled
Initializing port 0... Port 0, MAC address: 40:A6:B7:1E:9D:44 

Initializing port 1... Port 1, MAC address: 40:A6:B7:1E:9D:45 

Checking link statusdone
Port 0 Link up at 10 Gbps FDX Autoneg
Port 1 Link up at 10 Gbps FDX Autoneg
Lcore 0: RX port 0
Lcore 1: RX port 1
Allocated pool "priv_sess_mp_0" on socket 0
CRYPTODEV: elt_size 0 is expanded to 320 

Allocated pool "sess_mp_0" on socket 0
Lcore 0: cryptodev 0
Lcore 1: cryptodev 1
L2FWD: entering main loop on lcore 1
L2FWD: -- lcoreid=1 portid=1
L2FWD: entering main loop on lcore 0
L2FWD: -- lcoreid=0 portid=0
L2FWD: -- lcoreid=0 cryptoid=0
Options:-
nportmask: 3
ports per lcore: 1
refresh period : 10000
single lcore mode: disabled
stats_printing: enabled
sessionless crypto: disabled 

Crypto chain: Input --> Authenticated encryption --> Output
L2FWD: -- lcoreid=1 cryptoid=1 

---- AEAD information ---
Algorithm: aes-gcm
AEAD key: at [0x7fff90cc8a58], len=16
Options:-
nportmask: 3
ports per lcore: 1
refresh period : 10000
single lcore mode: disabled
stats_printing: enabled
sessionless crypto: disabled 

Crypto chain: Input --> Authenticated encryption --> Output 

---- AEAD information ---
Algorithm: aes-gcm
AEAD key: at [0x7fff90cc8a58], len=16
00000000: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |
................
IV: at [0x1004330c0], len=12
00000000: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |
................
IV: at [0x1004330c0], len=12
00000000: 6B 8A 74 C3 D6 4A 0B C5 F0 4B 18 6B | k.t..J...K.k
AAD: at [0x100435f00], len=0
00000000: 6B 8A 74 C3 D6 4A 0B C5 F0 4B 18 6B | k.t..J...K.k
AAD: at [0x100435f00], len=0 

... 

SEGMENTATION FAULT (CORE DUMPED) 

-------------------------------------------------------------------------


Am I missing something? 

Best Regards

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-16  4:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <17b9f9fd3f01698fa6f014ad54fe5550@ut.ac.ir>
2021-02-16  4:59 ` [dpdk-dev] pdump alongside the running l2fwd-crypto leads to Segmentation fault (core dumped) Error mirzaei.reza

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).