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 2C9F1A0C4D for ; Wed, 13 Oct 2021 08:10:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ACBD540150; Wed, 13 Oct 2021 08:10:55 +0200 (CEST) Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) by mails.dpdk.org (Postfix) with ESMTP id ED14240142 for ; Wed, 13 Oct 2021 08:10:53 +0200 (CEST) Received: by mail-qk1-f180.google.com with SMTP id az39so1264036qkb.5 for ; Tue, 12 Oct 2021 23:10:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=ZbtB6zgoucIqmvGQoNMt/E/Fr0eYNxpyNpooSqAoS2o=; b=gDWvQDAcUvU6Az0N1I39lB2GBwxtXTrXysTXJF+61MwwtLLtt3JRqrrojuaBnLoprG 89F1DUSb3fhA8fQqeHg5z9hBdBwWBWoFo1wHNY6QNV67Uw0GuvF1HP3st1iuGK745wlv 8dm3yFb+yneGjkwb3vc82B/sOVaR/k5nhIiACVXhKpiqdaptfLuxgpmfqxgfB+5mHEgE +OeMRJ/FIDa0VyRuZoTyNvA6IFptG9t6qrUra97cdd5wk+I3KL0yiZAn/V3g/sHoMJ+L Yv6I3vX5jXt+n8QeebyRnSGu3hOjws6r6DUNgAT+YBPsTPjXEbxVLa0Cd481WAdAKpVZ 6D/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ZbtB6zgoucIqmvGQoNMt/E/Fr0eYNxpyNpooSqAoS2o=; b=vZKVJUDIFYEAaiz2ZkTFYTqHRhCJG0Y+z0NA/zNUXPPR8CzmCdm12UuQK3xuKniJkY 0pO43q/2xbEMQXZ+m4Tpzho65RWKBCRL5vPo3cDM8vxpAsM+cVr0Yv8rbQKXwE/FsA/E HUe5tHqOllIK853F+b5Ze1JauByZkBmpzHjzetSDUe0h0Z2h1RHtOJCunVs5fXYrrR0/ tfWE//R4LcMjJ8aXHijw+/I0dF+2GB40VywZHnp6ZQ3Xu8agKj55ZIggCIZWfp68wdP3 dL4lXXpllYV/irP6s2HdNCmk663nfiA6GuD4rPd+hczYlf3Kn3CQF1ep/FsAc4X8w1ca xWfw== X-Gm-Message-State: AOAM533jgnqL692rVK4//qa14u5fXqzGqXi6E5GDYg/xp8Og7cPGV3Ol Zr1m+h7PoQTVl4GfLQNvPLRB0tw6sXqIHWsDav68r8cKqeQ= X-Google-Smtp-Source: ABdhPJxGwV9aZ5k+g7McYBJPv3Xo38EB0IPaoolwFTIhLkroVPVtyVfNlMpc1myGMXQMJSY9kkCwFWp0QtJ9uuRy16E= X-Received: by 2002:a37:2f07:: with SMTP id v7mr23871332qkh.38.1634105452941; Tue, 12 Oct 2021 23:10:52 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?5buW5pu46I+v?= Date: Wed, 13 Oct 2021 14:10:17 +0800 Message-ID: Subject: Troubles using pdump to capture the packets To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Dear all, In our environment, the DPDK version is for 19.11. Currently, we try to use pdump to capture the packet of our own application, however, we got the below error in our application and pdump respectively. (If we replace our application with test-pmd, pdump will not get the error) Error in our application : EAL: failed to parse device =E2=80=9Cvdev:net_pcap_rx_0=E2=80=9D EAL: Failed to hotplug add device on primary Error in pdump : The error is caused since function *rte_dev_probe()* will return -14 EAL: Failed to hotplug add device EAL: Error - exiting with code: 1 Cause: vdev creation failed:create_mp_ring_vdev:700 Taking the reference from DPDK email list, I already added the library (-Wl,-lrte_pdump -Wl,-lrte_pmd_pcap -Wl,-lpcap) in my application Makefile and recompile my application again, however, still got the same error message. Can someone give me some suggestions ? *Here's the complete log related to DPDK on my application.* [oran@localhost app]$ sudo -E LD_LIBRARY_PATH=3D$LD_LIBRARY_PATH ./run_o_ru.sh......... . . . xran_ethdi_init_dpdk_io: Calling rte_eal_init:wls_1 -c 0x800008001 -n2 --iova-mode=3Dpa --socket-mem=3D8192 --socket-limit=3D8192 --proc-type=3Dau= to --file-prefix wls_1 -w 0000:00:00.0 EAL: Detected 96 lcore(s) EAL: Detected 2 NUMA nodes EAL: Auto-detected process type: PRIMARY EAL: Multi-process socket /var/run/dpdk/wls_1/mp_socket EAL: Selected IOVA mode 'PA' EAL: Probing VFIO support... EAL: VFIO support initialized dump : 0 EAL: PCI device 0000:18:0a.0 on NUMA socket 0 EAL: probe driver: 8086:154c net_i40e_vf EAL: using IOMMU type 1 (Type 1) initializing port 0 for TX, drv=3Dnet_i40e_vf Port 0 MAC: 00 11 22 33 44 55 Port 0: nb_rxd 4096 nb_txd 4096 Checking link status portid [0] ... done Port 0 Link Up - speed 10000 Mbps - full-duplex EAL: PCI device 0000:18:0a.1 on NUMA socket 0 EAL: probe driver: 8086:154c net_i40e_vf initializing port 1 for TX, drv=3Dnet_i40e_vf Port 1 MAC: 00 11 22 33 44 55 Port 1: nb_rxd 4096 nb_txd 4096 EAL: failed to parse device "vdev:net_pcap_rx_0" EAL: Failed to hotplug add device on primary Checking link status portid [1] ... done Port 1 Link Up - speed 10000 Mbps - full-duplex vf 0 local SRC MAC: 00 11 22 33 44 55 vf 0 remote DST MAC: 00 11 22 33 44 66 vf 1 local SRC MAC: 00 11 22 33 44 55 vf 1 remote DST MAC: 00 11 22 33 44 66 *Here's the complete log of pdump.* [oran@localhost pdump]$ sudo ./dpdk-pdump -- --pdump 'port=3D0,queue=3D*,tx-dev=3D/tmp/tx.pcap,rx-dev=3D/tmp/rx.pcap' EAL: Detec= ted 96 lcore(s) EAL: Detected 2 NUMA nodes EAL: Multi-process socket /var/run/dpdk/wls_1/mp_socket_10639_24929237def08 EAL: Selected IOVA mode 'VA' EAL: Probing VFIO support... EAL: VFIO support initialized EAL: PCI device 0000:00:04.0 on NUMA socket 0 EAL: probe driver: 8086:2021 rawdev_ioat EAL: PCI device 0000:00:04.1 on NUMA socket 0 EAL: probe driver: 8086:2021 rawdev_ioat EAL: PCI device 0000:00:04.2 on NUMA socket 0 EAL: probe driver: 8086:2021 rawdev_ioat EAL: PCI device 0000:00:04.3 on NUMA socket 0 EAL: probe driver: 8086:2021 rawdev_ioat EAL: PCI device 0000:00:04.4 on NUMA socket 0 EAL: probe driver: 8086:2021 rawdev_ioat EAL: PCI device 0000:00:04.5 on NUMA socket 0 EAL: probe driver: 8086:2021 rawdev_ioat EAL: PCI device 0000:00:04.6 on NUMA socket 0 EAL: probe driver: 8086:2021 rawdev_ioat EAL: PCI device 0000:00:04.7 on NUMA socket 0 EAL: probe driver: 8086:2021 rawdev_ioat EAL: PCI device 0000:18:00.0 on NUMA socket 0 EAL: probe driver: 8086:1572 net_i40e EAL: PCI device 0000:18:00.1 on NUMA socket 0 EAL: probe driver: 8086:1572 net_i40e EAL: PCI device 0000:18:0a.0 on NUMA socket 0 EAL: probe driver: 8086:154c net_i40e_vf EAL: using IOMMU type 1 (Type 1) EAL: PCI device 0000:18:0a.1 on NUMA socket 0 EAL: probe driver: 8086:154c net_i40e_vf EAL: PCI device 0000:3d:00.0 on NUMA socket 0 EAL: probe driver: 8086:37d2 net_i40e EAL: PCI device 0000:3d:00.1 on NUMA socket 0 EAL: probe driver: 8086:37d2 net_i40e EAL: PCI device 0000:80:04.0 on NUMA socket 1 EAL: probe driver: 8086:2021 rawdev_ioat EAL: PCI device 0000:80:04.1 on NUMA socket 1 EAL: probe driver: 8086:2021 rawdev_ioat EAL: PCI device 0000:80:04.2 on NUMA socket 1 EAL: probe driver: 8086:2021 rawdev_ioat EAL: PCI device 0000:80:04.3 on NUMA socket 1 EAL: probe driver: 8086:2021 rawdev_ioat EAL: PCI device 0000:80:04.4 on NUMA socket 1 EAL: probe driver: 8086:2021 rawdev_ioat EAL: PCI device 0000:80:04.5 on NUMA socket 1 EAL: probe driver: 8086:2021 rawdev_ioat EAL: PCI device 0000:80:04.6 on NUMA socket 1 EAL: probe driver: 8086:2021 rawdev_ioat EAL: PCI device 0000:80:04.7 on NUMA socket 1 EAL: probe driver: 8086:2021 rawdev_ioat EAL: Failed to hotplug add device EAL: Error - exiting with code: 1 Cause: vdev creation failed:create_mp_ring_vdev:700 Best Regards, Shu-hua, Liao