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 180B4A0C47 for ; Fri, 19 Nov 2021 02:48:32 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8E2F840143; Fri, 19 Nov 2021 02:48:31 +0100 (CET) Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) by mails.dpdk.org (Postfix) with ESMTP id D17F540140 for ; Fri, 19 Nov 2021 02:48:29 +0100 (CET) Received: by mail-qk1-f173.google.com with SMTP id q64so8666127qkd.5 for ; Thu, 18 Nov 2021 17:48:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GG1MehLl2FWu3E1GiyArxNcNcInsLbue69coISwcymA=; b=Kp7kiWp7tZHNXgWf4b4e6FzHF2pbMdiHtfvdGcNmCN4lRxA29hZQDWVa8i7q7Dw6Mn MT5NacZ8zMJrqBAahLQMvnqWiqoo/9QAjZpZJBbiImLWA5ppzX2t9c7Wu4Pof65XudrG U+55NBPtfN+l/KII2Gy3JW+zfxdlOQgJ6SAbVUA7TKbrsBOau/J1esVml6md96sZKMxc Z0Z0cwXHjUe5KAS6MEPoi6I9Pf8cKckj1h00ZJab77mmVfAq6BRiakS2tcgA1GVXQ3We 4QRfLwhz+13kJL8SgFg4uQ6FYoRmPXQKGudh88O/2JZMZb4FqlvgO3LabxQNxBkiq2xV YjqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GG1MehLl2FWu3E1GiyArxNcNcInsLbue69coISwcymA=; b=J0Vt1HlFyaItQL31cgWVp2vWnvbbAOmRqepvtXlqbUuiSewFctrACPR4AM90dgziP2 wONIaYe6FVIbIzmScm03LqhWeLMqx97j/1gDAkM6WjGX+NnCGiYMeVlRVufCKvD1MBcs Djds8j/nXLEhTVgy8RL7QZfZesnBmgvlFV4kPaLkGkUz3ne3nvOgK+ryARGTtTRe2M3O mYye140OqwrmUocF0xREhpcG0z1pnI24Y1J9hrHT41x6sxNDA5ifDHn/V3bHIno7DGeQ UbUjqYJvdUXCYL6pJPJZzJeRnMpBk/NjuI+4ClaM+eXKhbp0Va2f3ZdcEt2D/nA7TOZQ ALRA== X-Gm-Message-State: AOAM530e3QpY+ZuSYTgelCPI1CqxoqVO0WJ4uvTz7/WvaOPO4PyWyCvI OhbaqT84h4jlsJNGw6togRJcGNXMpk9XQfgmyT3jV1GrHXk= X-Google-Smtp-Source: ABdhPJwjmY07OuoS28aL7EFlBGdbItIwZpqBcRjppukYXr63fF8wVONWK+JCaodWxUSoNIv+VCR32/6BOGaxKv+o8xY= X-Received: by 2002:a05:620a:2889:: with SMTP id j9mr25547139qkp.135.1637286509062; Thu, 18 Nov 2021 17:48:29 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?5buW5pu46I+v?= Date: Fri, 19 Nov 2021 09:47:52 +0800 Message-ID: Subject: Re: Pdump Didn't capture the packet To: "Pattan, Reshma" Cc: "users@dpdk.org" Content-Type: multipart/alternative; boundary="000000000000c4adeb05d11a782b" 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 --000000000000c4adeb05d11a782b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear, Yes, for the pcap, it is empty. I observe that on the pdump side, it will stuck in *EAL: VFIO support initialized *(red log below). After the primary application terminates, it will print the remaining log (blue log below). Is that normal ? *- Here's the log of pdump* [oran@localhost pdump]$ sudo ./dpdk-pdump --file-prefix wls_1 -- --pdump 'port=3D0,queue=3D*,tx-dev=3D/home/oran/Music/tx.pcap,rx-dev=3D/home/oran/M= usic/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 Best Regards, Shu-hua, Liao Pattan, Reshma =E6=96=BC 2021=E5=B9=B411=E6=9C=88= 17=E6=97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8B=E5=8D=886:01=E5=AF=AB=E9=81=93=EF= =BC=9A > > > > > *From:* =E5=BB=96=E6=9B=B8=E8=8F=AF > *Sent:* Wednesday, November 17, 2021 3:11 AM > *To:* Pattan, Reshma > *Cc:* users@dpdk.org > *Subject:* Re: Pdump Didn't capture the packet > > > > Dear, > > > > Thank you for the information ! > > I rerun the primary application with the other terminal running pdump, > however it still can't capture the packet. > > As for the logs you mentioned that is printed after the primary > application terminates. Also, for the primary application log, I can make > sure it transmits and receives the packet, but pdump still can't capture = it. > > > > [Reshma]: Are the pcap captured files empty? That might need some > debugging I guess. When you stop the pdump application you should see bel= ow > stats. > > If you see 0 =E2=80=9C*packets dequeued*=E2=80=9D, that means there is no= Packets > received from primary to pdump application. > > So, nee to debug the pdump library what is happening , why primary > application packets are not send to pdump application. You can try to > debugging the pdump library and pdump > > application. > > > > > > *packets dequeued:* > > > > *packets transmitted to vdev: * > > > > *packets freed: * > > *- For the log of pdump* > > [oran@localhost pdump]$ sudo ./dpdk-pdump --file-prefix wls_1 -- --pdump > 'port=3D0,queue=3D*,tx-dev=3D/home/oran/Music/tx.pcap,rx-dev=3D/home/oran= /Music/rx.pcap' > > > > Also, do you know whether pdump can capture the virtual function packet o= r > not ? (We bind to vfio-pci) > > [Reshma]: I have not tested with VFs , I always used PFs. > > Best Regards, > > Shu-hua, Liao > > > > Pattan, Reshma =E6=96=BC 2021=E5=B9=B411=E6=9C= =8815=E6=97=A5 =E9=80=B1=E4=B8=80 =E4=B8=8B=E5=8D=884:58=E5=AF=AB=E9=81=93= =EF=BC=9A > > > > > > *From:* =E5=BB=96=E6=9B=B8=E8=8F=AF > *Sent:* Monday, November 15, 2021 5:39 AM > *To:* users@dpdk.org > *Cc:* =E6=9E=97=E5=BA=AD=E5=AE=89 > *Subject:* Pdump Didn't capture the packet > > > > 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 a= ny > log related to pdump. > *- Here's the log of pdump* > > [oran@localhost pdump]$ sudo ./dpdk-pdump --file-prefix wls_1 -- --pdump > 'port=3D0,queue=3D*,tx-dev=3D/home/oran/Music/tx.pcap,rx-dev=3D/home/oran= /Music/rx.pcap' > > > > > > > > Primary process is no longer active, exiting... > > > > [Reshma]: From this log it is clear that, primary application is not > running. Rerun the primary application and in other terminal run the pdu= mp > application. > > > > Best Regards, > > Shu-hua, Liao > > --000000000000c4adeb05d11a782b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Dear,

=C2=A0

Yes, for the pcap, it is empty.

I observe that on the pdump side, it will stuck in EAL: VFIO support initialized (red log bel= ow). After the primary application terminates, it will print the remaining = log (blue log below). Is that normal ?

=C2=A0<= /u>- 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 DEBUG STATS ##### -packets dequeued: 0 -packets transmitted to vdev: 0 -packets freed: 0

<= u>=C2=A0


=

Best=C2=A0Regards,

Shu-hua, Liao


Pattan, Reshma <<= a href=3D"mailto:reshma.pattan@intel.com">reshma.pattan@intel.com> = =E6=96=BC 2021=E5=B9=B411=E6=9C=8817=E6=97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8B= =E5=8D=886:01=E5=AF=AB=E9=81=93=EF=BC=9A

=C2=A0

=C2=A0

From: =E5=BB=96=E6=9B=B8=E8=8F= =AF <sim860927@gmail.com>
Sent: Wednesday, November 17, 2021 3:11 AM
To: Pattan, Reshma <reshma.pattan@intel.com>
Cc: users@dpdk.o= rg
Subject: Re: Pdump Didn't capture the packet

=C2=A0

Dear,

=C2=A0

Thank you for the information !

I rerun the primary application with the other termi= nal running=C2=A0pdump, however it still can't capture the packet.

As for the logs you mentioned that is printed after = the primary application terminates. Also, for the primary application log, = I can make sure it transmits and receives the packet, but pdump still can&#= 39;t capture it.

=C2=A0

[Reshma]: Are the pcap captured files empty?=C2=A0 T= hat might need some debugging I guess. When you stop the pdump application = you should see below stats. =C2=A0

If you see 0 =E2=80=9Cpackets dequeued=E2=80= =9D, that means there is no Packets received from primary to pdump applicat= ion.=C2=A0

So, =C2=A0nee to =C2=A0debug the pdump library what = is happening , why primary application packets are not send to pdump applic= ation. You can try to debugging the pdump library and pdump

application.

=C2=A0

=C2=A0

packets dequeued:

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0

packets transmitted to vdev:=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0

packets freed:=C2=A0=C2=A0=C2=A0

- For the log = of pdump=

[oran= @localhost pdump]$ sudo ./dpdk-pdump --file-prefix wls_1 -- --pdump 'port=3D0,queue=3D*,tx-dev=3D/home/oran/Music/tx.pcap,rx-dev=3D/home/o= ran/Music/rx.pcap'<= /u>

=C2=A0=

Also, do you kno= w whether pdump can capture the virtual function packet or not ? (We bind t= o vfio-pci)<= /p>

[Reshma]: I have not tested with VFs , =C2=A0I alway= s used PFs. =C2=A0

Best=C2=A0Regard= s,

Shu-hua, Liao=

=C2=A0

Pattan, Reshma <reshma.pattan@intel.com> =E6=96=BC 2021=E5=B9=B411=E6=9C=8815=E6=97=A5 =E9=80=B1=E4=B8=80= =E4=B8=8B=E5=8D=884:58=E5=AF=AB=E9=81=93=EF=BC=9A

=C2=A0

=C2=A0

From: =E5=BB=96=E6=9B=B8= =E8=8F=AF <sim860927@gmail.com>
Sent: Monday, November 15, 2021 5:39 AM
To: users@dpdk.o= rg
Cc:
=E6=9E= =97=E5=BA=AD=E5=AE=89 <lingwanjae@gmail.com>
Subject: Pdump Didn't capture the packet

=C2=A0

Dear all,

=C2=A0

Currently, I want to use pdump to capture our DPDK a= pplication, however for the pdump side, unfortunately, didn't capture a= ny packet, also pdump didn't print any error. While for our application, it also didn't print any log related to pdump.=C2=A0<= br> - Here's the log of pdump

[oran= @localhost pdump]$ sudo ./dpdk-pdump --file-prefix wls_1 -- --pdump 'port=3D0,queue=3D*,tx-dev=3D/home/oran/Music/tx.pcap,rx-dev=3D/home/o= ran/Music/rx.pcap'

=C2=A0=

<snip>

=C2=A0

Prima= ry process is no longer active, exiting...

=C2=A0

[Reshma]: From this log it is clear that, primary= application is not running.=C2=A0 Rerun the primary application and in other terminal run the pdump application.

=C2=A0

Best=C2=A0Regards,

Shu-hua, Liao

--000000000000c4adeb05d11a782b--