<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Aptos" size="3"><span style="font-size:12pt;">
<div>Hi DPDK community, </div>
<div>&nbsp;</div>
<div>I need some urgent help.</div>
<div>&nbsp;</div>
<ol style="margin:0;padding-left:36pt;list-style-type:decimal;">
<li>Iam running my dpdk application on a VMware based VM. <span style="background-color:yellow;"><b>Iam using 20.11.9 </b></span><span style="background-color:yellow;"><b>dpdk </b></span><span style="background-color:yellow;"><b>version</b></span></li></ol>
<div style="text-indent:36pt;">Iam directly connected to the PCI device to receive pkts on my application. </div>
<div>&nbsp;</div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">: </font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: Detected 16 lcore(s)</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: Detected 1 NUMA nodes</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: Detected shared linkage of DPDK</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: Multi-process socket /var/run/dpdk/rte/mp_socket</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: Selected IOVA mode 'PA'</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: No available hugepages reported in hugepages-1048576kB</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: Probing VFIO support...</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: VFIO support initialized</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: Probe PCI driver: net_vmxnet3 (15ad:7b0) device: 0000:04:00.0 (socket 0)</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: No legacy callbacks, legacy socket not created</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New"><b>:</b></font></div>
<div>&nbsp;</div>
<ol start="2" style="margin:0;padding-left:36pt;list-style-type:decimal;">
<li>Iam trying to use dpdk-pdump application to capture packets.</li></ol>
<div>&nbsp;</div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">dpdk-pdump -l 3 -- --pdump 'device_id=0000:04:00.0,queue=*,rx-dev=/tmp/rx.pcap,total-num-mbufs=8192,ring-size=128'</font></div>
<div style="text-indent:36pt;padding-left:36pt;">&nbsp;</div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: Detected 16 lcore(s)</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: Detected 1 NUMA nodes</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: Detected static linkage of DPDK</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_644376_50d5dc20612f8</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: Selected IOVA mode 'PA'</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: Probing VFIO support...</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: VFIO support initialized</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">EAL: Probe PCI driver: net_vmxnet3 (15ad:7b0) device: 0000:04:00.0 (socket 0)</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New"><b>Port 1 MAC: 02 70 63 61 70 00</b></font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New"> <b>core (3), capture for (1) tuples</b></font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New"> - <b>port 0 device (0000:04:00.0) queue 65535</b></font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">^C</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">&nbsp;</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">Signal 2 received, preparing to exit...</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New">##### PDUMP DEBUG STATS #####</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New"> -packets dequeued:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New"> -packets transmitted to vdev:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0</font></div>
<div style="text-indent:36pt;padding-left:36pt;"><font face="Courier New"> -packets freed:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0</font></div>
<div>&nbsp;</div>
<div style="text-indent:36pt;">This is the mempool and ring which got created in app side</div>
<div>&nbsp;</div>
<div style="padding-left:72pt;"><font face="Courier New">ring &lt;MP_pdump_pool_0&gt;@0x10045db00</font></div>
<div style="padding-left:72pt;"><font face="Courier New">&nbsp; flags=0</font></div>
<div style="padding-left:72pt;"><font face="Courier New">&nbsp; size=16384</font></div>
<div style="padding-left:72pt;"><font face="Courier New">&nbsp; capacity=16383</font></div>
<div style="padding-left:72pt;"><font face="Courier New">&nbsp; ct=0</font></div>
<div style="padding-left:72pt;"><font face="Courier New">&nbsp; ch=0</font></div>
<div style="padding-left:72pt;"><font face="Courier New">&nbsp; pt=8192</font></div>
<div style="padding-left:72pt;"><font face="Courier New">&nbsp; ph=8192</font></div>
<div style="padding-left:72pt;"><font face="Courier New">&nbsp; used=8192</font></div>
<div style="padding-left:72pt;"><font face="Courier New">&nbsp; avail=8191</font></div>
<div style="padding-left:72pt;"><font face="Courier New">ring &lt;rx_ring_0&gt;@0x102802680</font></div>
<div style="padding-left:72pt;"><font face="Courier New">&nbsp; flags=0</font></div>
<div style="padding-left:72pt;"><font face="Courier New">&nbsp; size=128</font></div>
<div style="padding-left:72pt;"><font face="Courier New">&nbsp; capacity=127</font></div>
<div style="padding-left:72pt;"><font face="Courier New">&nbsp; <b>ct=0</b></font></div>
<div style="padding-left:72pt;"><font face="Courier New"><b>&nbsp; ch=0</b></font></div>
<div style="padding-left:72pt;"><font face="Courier New"><b>&nbsp; pt=0</b></font></div>
<div style="padding-left:72pt;"><font face="Courier New"><b>&nbsp; ph=0</b></font></div>
<div style="padding-left:72pt;"><font face="Courier New">&nbsp; used=0</font></div>
<div style="padding-left:72pt;"><font face="Courier New">&nbsp; avail=127</font></div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div>
<div style="text-indent:36pt;">This is the port output, port 0 is application and port 1 is created by pdump and no pkt is seen to be captured.</div>
<div style="text-indent:36pt;">&nbsp;</div>
<div style="text-indent:36pt;"><font face="Courier New">Port 0 stats:</font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - link status: 1</font></div>
<div style="text-indent:36pt;"><font face="Courier New"> <b>- Pkts in:&nbsp;&nbsp; 50</b></font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - Pkts out:&nbsp; 0</font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - total ibytes: 4024</font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - total obytes: 0</font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - rx miss: 0</font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - In Errs:&nbsp;&nbsp; 0</font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - Out Errs:&nbsp; 0</font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - Mbuf Errs: 0</font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - Q Rx Packets: </font></div>
<div style="text-indent:36pt;"><font face="Courier New">&nbsp;</font></div>
<div style="text-indent:36pt;"><font face="Courier New">Port 1 stats:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - link status: 1</font></div>
<div style="text-indent:36pt;"><font face="Courier New"><b> - Pkts in:&nbsp;&nbsp; 0</b></font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - Pkts out:&nbsp; 0</font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - total ibytes: 0</font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - total obytes: 0</font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - rx miss: 0</font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - In Errs:&nbsp;&nbsp; 0</font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - Out Errs:&nbsp; 0</font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - Mbuf Errs: 0</font></div>
<div style="text-indent:36pt;"><font face="Courier New"> - Q Rx Packets:</font></div>
<div>&nbsp;</div>
<ol start="3" style="margin:0;padding-left:36pt;list-style-type:decimal;">
<li>I see the same result while using dpdk-testpmd on the APP side.</li></ol>
<div>&nbsp;</div>
<ol start="4" style="margin:0;padding-left:36pt;list-style-type:decimal;">
<li>As per this page, <a href="https://doc.dpdk.org/guides/tools/pdump.html"><font color="#467886"><u>https://doc.dpdk.org/guides/tools/pdump.html</u></font></a>.</li></ol>
<div style="padding-left:36pt;">Is this applicable to vmxnet3 device here ??</div>
<div style="padding-left:36pt;">&nbsp;</div>
<ul style="margin:0;padding-left:54pt;">
<li><span style="background-color:yellow;"><i>As of now the&nbsp;dpdk-pdump&nbsp;tool cannot capture the packets of virtual devices in the primary process due to a bug in the ethdev library. Due to this bug, in a multi process context, when the primary and secondary
have different ports set, then the secondary process (here the&nbsp;dpdk-pdump&nbsp;tool) overwrites the&nbsp;rte_eth_devices[]&nbsp;entries of the primary process.</i></span></li></ul>
<div>&nbsp;</div>
<div>Thanks</div>
<div>Rajesh </div>
<div style="padding-left:36pt;">&nbsp;</div>
<div style="padding-left:36pt;">&nbsp;</div>
</span></font>
</body>
</html>