From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CBB15A054F; Tue, 16 Feb 2021 05:59:44 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3DF0D160684; Tue, 16 Feb 2021 05:59:44 +0100 (CET) Received: from mail.ut.ac.ir (mail.ut.ac.ir [80.66.177.10]) by mails.dpdk.org (Postfix) with ESMTP id C0FBA40690 for ; Tue, 16 Feb 2021 05:59:41 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.ut.ac.ir (Postfix) with ESMTP id 9691B1DABBC for ; Tue, 16 Feb 2021 08:29:40 +0330 (+0330) Received: from mail.ut.ac.ir ([127.0.0.1]) by localhost (mail.ut.ac.ir [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 8mAzfZKbcUaH for ; Tue, 16 Feb 2021 08:29:39 +0330 (+0330) Received: from mail.ut.ac.ir (mail.ut.ac.ir [194.225.0.10]) by mail.ut.ac.ir (Postfix) with ESMTP id D5D1C1DABB9 for ; Tue, 16 Feb 2021 08:29:39 +0330 (+0330) MIME-Version: 1.0 Date: Tue, 16 Feb 2021 08:29:39 +0330 From: "mirzaei.reza" To: dev@dpdk.org In-Reply-To: <17b9f9fd3f01698fa6f014ad54fe5550@ut.ac.ir> References: <17b9f9fd3f01698fa6f014ad54fe5550@ut.ac.ir> Message-ID: X-Sender: mirzaei.reza@ut.ac.ir User-Agent: Roundcube Webmail/1.3.6 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [dpdk-dev] pdump alongside the running l2fwd-crypto leads to Segmentation fault (core dumped) Error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "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