<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<div dir="auto">Hi volodymyr,</div>
<div dir="auto"> Thanks for the quick response.<span></span></div>
<div dir="auto">Let me go through the test code and come back if i need any clarifications.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Thanks<span>,<br>
Bala</span></div>
<div id="mail-editor-reference-message-container" dir="auto"><br>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" style="font-size: 11pt;"><strong>From:</strong> Volodymyr Fialko <vfialko@marvell.com><br>
<strong>Sent:</strong> Monday, March 20, 2023, 4:50 PM<br>
<strong>To:</strong> Balakrishnan K <Balakrishnan.K1@tatacommunications.com>; users@dpdk.org <users@dpdk.org><br>
<strong>Subject:</strong> RE: Reg.dpdk reorder library usage<br>
</div>
<br>
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<div style="background-color:#CFD3D6; border:1px dotted #003333; padding:.8em">
<p></p>
<p><font size="1" color="red"><b>CAUTION</b>: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
</font></p>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
Hi,<br>
<br>
Could you take a look at the app/test/test_reorder.c `test_reorder_drain()` test case. It follows your steps closely and includes comments that describe the internal state of buffers, which could be helpful during debugging.</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
</p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
<b>From:</b> Balakrishnan K <Balakrishnan.K1@tatacommunications.com> <br>
<b>Sent:</b> Monday, March 20, 2023 11:54 AM<br>
<b>To:</b> users@dpdk.org<br>
<b>Cc:</b> Volodymyr Fialko <vfialko@marvell.com><br>
<b>Subject:</b> [EXT] Reg.dpdk reorder library usage</p>
</div>
</div>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
<span lang="EN-IN" style="font-size:18.0pt; color:red">External Email</span><span lang="EN-IN">
</span></p>
<div class="MsoNormal" align="center" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;text-align:center">
<span lang="EN-IN">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
Hi All,</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
I am planning to use dpdk reorder library in my application.</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
Used reorder library API’s by refereeing the packet ordering example.</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
Steps:</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
Our application uses dpdk pipeline.</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
1.read the packet from rx </p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
2.Create the rte_reorder_create() if not created already or use the existing buffer.</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
3.iterate through the rx packets and set the sequence number using *rte_reorder_seqn(pkt) = seqn++.</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
4.insert the packets using the API rte_reorder_insert(ro_buf, pkt);</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
5.after insert completed I am using rte_reorder_drain API to get the reorder packets .</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
In step 5 always getting zero packets.</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
Even though all the rx packets are in order rte_reoder_drain API not giving the output.</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
Could any please help on this am I missing anything in the implementation .</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
How to use this library properly.</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
Tried to run the packet ordering example with 4 ports .</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
Sent traffic in port 1 there is no packet out in port 1 as mentioned in application example page.</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
<a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__doc.dpdk.org_guides_sample-5Fapp-5Fug_packet-5Fordering.html%26d%3DDwMFAg%26c%3DnKjWec2b6R0mOyPaz7xtfQ%26r%3D4iVvgx5PfauIDNaDpT1Ph7naVrkBkhwh2wdQ1AUXVjo%26m%3DLRnVWVWJFPG262ii-XDMQhsmNnSxIXzBIwBY_fRUQsmMdsEDvqC9-T16uF0eYOxo%26s%3D1Oji8GpXbRO608Vsx4e_m1MT1oOXqYA1hx5C6JSiDLY%26e%3D&data=05%7C01%7CBalakrishnan.K1%40tatacommunications.com%7C361fa04625c147b4fb0a08db29350923%7C202104622c5e4ec8b3e20be950f292ca%7C0%7C0%7C638149080000239969%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=P8ZAZ2wJY%2FTIqz9XnjvWusNy8iDSzbXvhYjDTJMgf%2Bc%3D&reserved=0" originalsrc="https://urldefense.proofpoint.com/v2/url?u=https-3A__doc.dpdk.org_guides_sample-5Fapp-5Fug_packet-5Fordering.html&d=DwMFAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=4iVvgx5PfauIDNaDpT1Ph7naVrkBkhwh2wdQ1AUXVjo&m=LRnVWVWJFPG262ii-XDMQhsmNnSxIXzBIwBY_fRUQsmMdsEDvqC9-T16uF0eYOxo&s=1Oji8GpXbRO608Vsx4e_m1MT1oOXqYA1hx5C6JSiDLY&e=" shash="uo5PGRA85JkfZY/ASX+9hReyEzNzhiOUnU3Wn5XcuSYP3kxEbwGwEnEp4gu2alOCLWWWl/gE2KHvUoYoxD5ZF10CBUU0PtyC/BJ51HXv6GZWzHwwFFvyPFXHu6KMIBwLIOJP/FfllWk/9lri20g6jcURDtvjUfqe4EqCoNPQ1lE=">https://doc.dpdk.org/guides/sample_app_ug/packet_ordering.html</a></p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
Regards,</p>
<p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">
Bala </p>
</div>
</div>
<br>
</div>
</body>
</html>