<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=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@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;}
/* 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.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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-IN" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi volodymyr,<o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">      I checked the
</span>app/test/test_reorder.c code.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Could you please provide some clarification on below queries:<o:p></o:p></p>
<p class="MsoNormal">Reorder library ensure packet goes out in the same order they are received in RX?<o:p></o:p></p>
<p class="MsoNormal">Sequence number in the mbuf decides the packet index in buffer?<o:p></o:p></p>
<p class="MsoNormal">Is the reorder works based on the sequence number that we insert in mbuf not based on the sequence number present in the packet header?<o:p></o:p></p>
<p class="MsoNormal">Sequence number should be incremental ?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In my use case TCP packets are coming in out of order to the RX itself , how can I use the reorder library to fix the ordering while sending out.<o:p></o:p></p>
<p class="MsoNormal">TCP sequence number cannot be incremental , sequence number will be decide based on the number bytes transferred .<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks ,<o:p></o:p></p>
<p class="MsoNormal">Bala <o:p></o:p></p>
<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>
<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"> Balakrishnan K <Balakrishnan.K1@tatacommunications.com>
<br>
<b>Sent:</b> Monday, March 20, 2023 5:24 PM<br>
<b>To:</b> Volodymyr Fialko <vfialko@marvell.com>; users@dpdk.org<br>
<b>Subject:</b> Re: Reg.dpdk reorder library usage<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi volodymyr,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">  Thanks for the quick response.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Let me go through the test code and come back if i need any clarifications.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<br>
Bala<o:p></o:p></p>
</div>
<div id="mail-editor-reference-message-container">
<p class="MsoNormal"><o:p> </o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><strong><span style="font-family:"Calibri",sans-serif">From:</span></strong> Volodymyr Fialko <<a href="mailto:vfialko@marvell.com">vfialko@marvell.com</a>><br>
<strong><span style="font-family:"Calibri",sans-serif">Sent:</span></strong> Monday, March 20, 2023, 4:50 PM<br>
<strong><span style="font-family:"Calibri",sans-serif">To:</span></strong> Balakrishnan K <<a href="mailto:Balakrishnan.K1@tatacommunications.com">Balakrishnan.K1@tatacommunications.com</a>>;
<a href="mailto:users@dpdk.org">users@dpdk.org</a> <<a href="mailto:users@dpdk.org">users@dpdk.org</a>><br>
<strong><span style="font-family:"Calibri",sans-serif">Subject:</span></strong> RE: Reg.dpdk reorder library usage<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:dotted #003333 1.0pt;padding:10.0pt 10.0pt 10.0pt 10.0pt">
<p style="background:#CFD3D6"><b><span style="font-size:7.5pt;color:red">CAUTION</span></b><span style="font-size:7.5pt;color:red">: 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. </span><o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>From:</b> Balakrishnan K <<a href="mailto:Balakrishnan.K1@tatacommunications.com">Balakrishnan.K1@tatacommunications.com</a>>
<br>
<b>Sent:</b> Monday, March 20, 2023 11:54 AM<br>
<b>To:</b> <a href="mailto:users@dpdk.org">users@dpdk.org</a><br>
<b>Cc:</b> Volodymyr Fialko <<a href="mailto:vfialko@marvell.com">vfialko@marvell.com</a>><br>
<b>Subject:</b> [EXT] Reg.dpdk reorder library usage<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:18.0pt;color:red">External Email</span>
<o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<p class="MsoNormal">     I am planning to use dpdk reorder library in my application.<o:p></o:p></p>
<p class="MsoNormal">Used reorder library API’s by refereeing  the packet ordering example.<o:p></o:p></p>
<p class="MsoNormal">Steps:<o:p></o:p></p>
<p class="MsoNormal">Our application uses dpdk pipeline.<o:p></o:p></p>
<p class="MsoNormal">1.read the packet from rx <o:p></o:p></p>
<p class="MsoNormal">2.Create the rte_reorder_create() if not created already or use the existing buffer.<o:p></o:p></p>
<p class="MsoNormal">3.iterate through the rx packets and set the sequence number using *rte_reorder_seqn(pkt) = seqn++.<o:p></o:p></p>
<p class="MsoNormal">4.insert the packets using the API rte_reorder_insert(ro_buf, pkt);<o:p></o:p></p>
<p class="MsoNormal">5.after insert completed I am using rte_reorder_drain API to get the reorder packets .<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">In step 5 always getting zero packets.<o:p></o:p></p>
<p class="MsoNormal">Even though all the rx packets are in order rte_reoder_drain API not giving the output.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Could any please help on this am I missing anything in the implementation .<o:p></o:p></p>
<p class="MsoNormal">How to use this library properly.<o:p></o:p></p>
<p class="MsoNormal">Tried to run the packet ordering example with 4 ports .<o:p></o:p></p>
<p class="MsoNormal">Sent traffic in port 1 there is no packet out in port 1 as mentioned in application example page.<o:p></o:p></p>
<p class="MsoNormal"><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">https://doc.dpdk.org/guides/sample_app_ug/packet_ordering.html</a><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Bala <o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>