<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:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle18
{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:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<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 0in 0in 0in">
<p class="MsoNormal"><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<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-IN" style="font-size:18.0pt;color:red">External Email</span><span lang="EN-IN">
<o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-IN">
<hr size="2" width="100%" align="center">
</span></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://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=">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>
</body>
</html>