<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"\@MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-IE" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> </span>
<span style="font-family:"MS Gothic"">廖書華</span><span lang="EN-US"> <sim860927@gmail.com>
<br>
<b>Sent:</b> Wednesday, November 17, 2021 3:11 AM<br>
<b>To:</b> Pattan, Reshma <reshma.pattan@intel.com><br>
<b>Cc:</b> users@dpdk.org<br>
<b>Subject:</b> Re: Pdump Didn't capture the packet<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Dear,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">Thank you for the information !<o:p></o:p></p>
<div>
<p class="MsoNormal">I rerun the primary application with the other terminal running pdump, however it still can't capture the packet.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[Reshma]: Are the pcap captured files empty?  That might need some debugging I guess. When you stop the pdump application you should see below stats.  <o:p></o:p></p>
<p class="MsoNormal">If you see 0 “<b>packets dequeued</b>”, that means there is no Packets received from primary to pdump application. 
<o:p></o:p></p>
<p class="MsoNormal">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<o:p></o:p></p>
<p class="MsoNormal">application.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>packets dequeued:<o:p></o:p></b></p>
<p class="MsoNormal"><b>                     <o:p></o:p></b></p>
<p class="MsoNormal"><b>packets transmitted to vdev:          <o:p></o:p></b></p>
<p class="MsoNormal" style="margin-left:4.8pt"><b>                                                <o:p></o:p></b></p>
<p class="MsoNormal"><b>packets freed:    <o:p></o:p></b></p>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="color:#500050">- For the log of pdump</span></b><span style="color:#500050"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:Consolas;color:#333333;letter-spacing:.25pt;background:#F7F7F7">[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'</span><span style="color:#500050"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:Consolas;color:#500050;letter-spacing:.25pt;background:#F7F7F7"> </span><span style="color:#500050"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#222222">Also, do you know whether pdump can capture the virtual function packet or not ? (We bind to vfio-pci)</span><span style="color:#500050"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">[Reshma]: I have not tested with VFs ,  I always used PFs.  <o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="color:#222222">Best Regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#222222">Shu-hua, Liao<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Pattan, Reshma <<a href="mailto:reshma.pattan@intel.com">reshma.pattan@intel.com</a>>
<span style="font-family:"MS Gothic"">於</span> 2021<span style="font-family:"MS Gothic"">年</span>11<span style="font-family:"MS Gothic"">月</span>15<span style="font-family:"MS Gothic"">日</span>
<span style="font-family:"MS Gothic"">週一</span> <span style="font-family:"MS Gothic"">
下午</span>4:58<span style="font-family:"MS Gothic"">寫道:</span><o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-US">From:</span></b><span lang="EN-US">
</span><span style="font-family:"MS Gothic"">廖書華</span><span lang="EN-US"> <<a href="mailto:sim860927@gmail.com" target="_blank">sim860927@gmail.com</a>>
<br>
<b>Sent:</b> Monday, November 15, 2021 5:39 AM<br>
<b>To:</b> <a href="mailto:users@dpdk.org" target="_blank">users@dpdk.org</a><br>
<b>Cc:</b> </span><span style="font-family:"MS Gothic"">林庭安</span><span lang="EN-US"> <<a href="mailto:lingwanjae@gmail.com" target="_blank">lingwanjae@gmail.com</a>><br>
<b>Subject:</b> Pdump Didn't capture the packet</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Dear all,<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">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. <br>
<b>- Here's the log of pdump</b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:Consolas;color:#333333;letter-spacing:.25pt;background:#F7F7F7">[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'</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:Consolas;color:black;letter-spacing:.25pt;background:#F7F7F7"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:black;letter-spacing:.25pt;background:#F7F7F7"><snip></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:black;letter-spacing:.25pt;background:#F7F7F7"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:Consolas;color:#333333;letter-spacing:.25pt;background:#F7F7F7">Primary process is no longer active, exiting...</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:black;letter-spacing:.25pt;background:#F7F7F7"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:black;letter-spacing:.25pt;background:#F7F7F7">[Reshma]: From this log it is clear that, primary application is not running.  Rerun the primary application and
 in other terminal run the pdump application.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b> </b><o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Best Regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Shu-hua, Liao<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</body>
</html>