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 79FDDA0C43 for ; Mon, 15 Nov 2021 06:39:49 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0327F40E01; Mon, 15 Nov 2021 06:39:49 +0100 (CET) Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) by mails.dpdk.org (Postfix) with ESMTP id 0935440141 for ; Mon, 15 Nov 2021 06:39:47 +0100 (CET) Received: by mail-qk1-f171.google.com with SMTP id i9so15565465qki.3 for ; Sun, 14 Nov 2021 21:39:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to:cc; bh=vcRvXmaSFKkkCbp2/RbqxLGfqd2W4GnspzqG3S+bPn4=; b=kqrteX8J+3e4W898EMEGPKnkkodMycW2iA8vxBa62KhY+8360109FHreAtHrLHbY9J XqKFhVYt2vGL+pSZy2Qpi9uLTKOcrN668BPOTebUWpRuqiVYYHyUEcmhHgzC/bUHokMQ hxZkZk4qTs7VELksmfcjL7kkjRc+zAiIQFCAvnga5NewjQh36k3Xuqap0QxDreq3LYgi i9FBcpDZ0MDa5zVpb7kGw5idLerrT93vxsoPh5ZqOHRxJyvNlp4cR7aO2MnTbSOhMCWc HwzdiiSFoNK7tVgFO3e87S8DRmTY47ZgsgAWoYcLm2g1tPbGpijTdnP0Z/h2btP1FGqg luOA== 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:cc; bh=vcRvXmaSFKkkCbp2/RbqxLGfqd2W4GnspzqG3S+bPn4=; b=G3RCaESiDA5sTVHdfblygUJ4MB8P+/tEastQj2PCY9H2fybw5ceompOW8ztuf6st9k b5BaUUB5oYLgDg2k2vJefZmq7EbseoEcP0hmV5UWy+WfU9wwp9+Y2HoVr5C61OltJ0BC swMcjCChK7aWxCcrNQt58HY9hhp7eJWO8YylgEKYvDe6zsSVc/WH+tGR4jdBXwuZSOPn L5DNI5S+mdhIl+XGy7ltDyfqxXv3lZx0VIMKKUV5JHd116wWwr24qQyr+ouYiVqXRvc2 l+SjZBwf1mRU7OATPp+XNMB0vNQAdafprZQBVMh0fnSH94pOAMnEqi4Lea7mc5cvXNsT edYg== X-Gm-Message-State: AOAM530Tt2d7+0VExDaIyZc+53TJW8WYXdvltU9ItIlGj31T0gvUvfWc K3INWCTiN6j4Ejw+Yp3NRfADIoQ+1bCe/cmyyF5Cg9kq8Lw7Hw== X-Google-Smtp-Source: ABdhPJwW+29j9tBVrSMwf824/MQ67mOGOwdV+8E0J/3qzL2+SsJ8UZq8wmmRMF+HXAPqRpvJgcyqpMIG9VqgBJN0NGw= X-Received: by 2002:a05:620a:2889:: with SMTP id j9mr29135785qkp.135.1636954786245; Sun, 14 Nov 2021 21:39:46 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?B?5buW5pu46I+v?= Date: Mon, 15 Nov 2021 13:39:10 +0800 Message-ID: Subject: Pdump Didn't capture the packet To: users@dpdk.org Cc: =?UTF-8?B?5p6X5bqt5a6J?= Content-Type: multipart/alternative; boundary="0000000000008c2d8f05d0cd3c66" 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 --0000000000008c2d8f05d0cd3c66 Content-Type: text/plain; charset="UTF-8" Dear all, Currently, I want to use pdump to capture our DPDK application, however for the pdump side, unfortunately, didn't capture any packet, also pdump didn't print any error. While for our application, it also didn't print any log related to pdump. *- Here's the log of pdump* [oran@localhost pdump]$ sudo ./dpdk-pdump --file-prefix wls_1 -- --pdump 'port=0,queue=*,tx-dev=/home/oran/Music/tx.pcap,rx-dev=/home/oran/Music/rx.pcap' [sudo] password for oran: EAL: Detected 96 lcore(s) EAL: Detected 2 NUMA nodes EAL: Multi-process socket /var/run/dpdk/wls_1/mp_socket_9612_d352314e70d54 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 Port 2 MAC: 02 70 63 61 70 00 Port 3 MAC: 02 70 63 61 70 01 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/wls_1/mp_socket) due to Connection refused EAL: Fail to send request /var/run/dpdk/wls_1/mp_socket:mp_pdump PDUMP: client request for pdump enable/disable failed EAL: failed to send to (/var/run/dpdk/wls_1/mp_socket) due to Connection refused EAL: Fail to send request /var/run/dpdk/wls_1/mp_socket:eal_dev_mp_request EAL: Cannot send request to primary EAL: Failed to send hotplug request to primary EAL: failed to send to (/var/run/dpdk/wls_1/mp_socket) due to Connection refused EAL: Fail to send request /var/run/dpdk/wls_1/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: 0 -packets transmitted to vdev: 0 -packets freed: 0 *- Here's the detailed step using pdump* 1. Add rte_pdump_init() and rte_pdump_uninit() to our application 2. Recompile DPDK 19.11 3. Add the library, -lrte_pdump & -lrte_pmd_pcap to our application's Makefile 4. Bind the virtual function for DPDK port (vfio-pci) Does I miss something? Or does pdump can not capture the virtual function packet ? I will be grateful for any help you can provide. Best Regards, Shu-hua, Liao --0000000000008c2d8f05d0cd3c66 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear all,

Currently, I want to use pdum= p to capture our DPDK application, however for the pdump side, unfortunatel= y, didn't capture any packet, also pdump didn't print any error. Wh= ile for our application, it also didn't print any log related to pdump.= =C2=A0
- Here's the log of pdump
[oran@localhost pdump]$ sudo ./dpdk-pdump --file-p= refix wls_1 -- --pdump 'port=3D0,queue=3D*,tx-dev=3D/home/oran/Music/tx= .pcap,rx-dev=3D/home/oran/Music/rx.pcap' [sudo] password for oran:=20 EAL: Detected 96 lcore(s) EAL: Detected 2 NUMA nodes EAL: Multi-process socket /var/run/dpdk/wls_1/mp_socket_9612_d352314e70d54 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 Port 2 MAC: 02 70 63 61 70 00 Port 3 MAC: 02 70 63 61 70 01 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/wls_1/mp_socket) due to Connection re= fused EAL: Fail to send request /var/run/dpdk/wls_1/mp_socket:mp_pdump PDUMP: client request for pdump enable/disable failed EAL: failed to send to (/var/run/dpdk/wls_1/mp_socket) due to Connection re= fused EAL: Fail to send request /var/run/dpdk/wls_1/mp_socket:eal_dev_mp_request EAL: Cannot send request to primary EAL: Failed to send hotplug request to primary EAL: failed to send to (/var/run/dpdk/wls_1/mp_socket) due to Connection re= fused EAL: Fail to send request /var/run/dpdk/wls_1/mp_socket:eal_dev_mp_request EAL: Cannot send request to primary EAL: Failed to send hotplug request to primary ##### PDUMP DEBU= G STATS ##### -packets dequeued: 0 -packets transmitted to vdev: 0 -packets freed: 0

- Here's the de= tailed=C2=A0step using pdump
1. Add rte_pdump_init() and=C2= =A0rte_pdump_uninit() to our application
2. Recompile DPDK 19.11<= /div>
3. Add the library,=C2=A0-lrte_pdump &=C2=A0-lrte_pmd_pcap to= our application's Makefile
4. Bind the virtual function for = DPDK port (vfio-pci)

Does I miss something? Or doe= s pdump can not capture the virtual function packet ?
I will be grateful= for any help you can provide.

Best=C2=A0Regards,
Shu-hua, Liao
--0000000000008c2d8f05d0cd3c66--