<div dir="ltr"><div>Hello commit authors (and maintainers),</div><div><br></div><div>I'm currently working with <code>rte_flow_async_create()</code> using the <code>postpone</code> flag, along with <code>rte_flow_push/pull()</code> for batching, in a scenario involving thousands of flows on a BlueField-2 system.</div><div>
<p>My goal is to implement hardware steering such that ingress traffic bypasses the ARM core of the BF2, and egress traffic does the same.</p>
<p>According to the DPDK documentation, <code>rte_flow_push/pull()</code> seems to be intended for use as a batch operation, wrapping a large <code>for</code> loop that issues multiple flow operations, and then committing them to hardware in one go.</p>
<p>However, I’ve observed that when multiple cores simultaneously insert flow rules, using <code>rte_flow_push/pull()</code> in such a batched way can result in the rule insertion operations not being properly transmitted to the hardware. Specifically, the internal function <code>mlx5dr_send_all_dep_wqe()</code> ends up getting stuck in its <code>while</code> loop.</p>
<p>Interestingly, if I call <code>rte_flow_push/pull()</code> after <strong>each</strong> individual <code>rte_flow_async_create()</code> operation, even though that usage seems contrary to the intended batching model, the infinite loop issue is significantly mitigated. The frequency of getting stuck in <code>mlx5dr_send_all_dep_wqe()</code> drops drastically—though it still occurs occasionally.</p>
<p>In summary, calling <code>rte_flow_push/pull()</code> after each <code>rte_flow_async_create()</code> seems to avoid the infinite loop, but I’m unsure if this is an expected usage pattern. I would like to ask:</p>
<ul>
<li>
<p>Is this behavior intentional?</p>
</li>
<li>
<p>Am I misunderstanding the design or usage expectations for <code>rte_flow_push/pull()</code> in multi-core scenarios?</p>
</li>
</ul>
<p>Thank you for your time and support.</p></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="color:rgb(34,34,34)">Sincerely,</div><table cellpadding="0" cellspacing="0" style="font-size:13px;color:rgb(25,34,52);max-width:570px"><tbody><tr><td style="margin:0.1px;padding:0px 0px 7px;border-bottom:3px solid rgb(19,23,38)"><span style="color:rgb(19,23,38)"><b style="font-family:"times new roman",serif;font-size:20px">Seongjong Bae </b></span><span style="font-family:"times new roman",serif;color:rgb(19,23,38);font-size:12px">M.S. Student </span><span style="font-family:"times new roman",serif;color:rgb(19,23,38);font-size:12px;font-weight:bold">T-Networking Lab.</span></td></tr><tr><td style="margin:0.1px;padding:10px 0px 0px"><table cellspacing="0" cellpadding="0" style="line-height:normal"><tbody><tr><td valign="top" style="margin:0.1px;padding:0px 15px 0px 0px"><font face="times new roman, serif"><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4yCWXBmHrQ1GGSZ1Kc18irHfB1S9x_FqTeAHsxNIdnf_olG-PRjFVlItUw34zr1tnNwkP5AlPTomK87"><br></font></td><td valign="top" style="margin:0.1px"><table cellspacing="0" cellpadding="0" style="line-height:normal"><tbody><tr><td style="margin:0.1px"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="margin:0.1px;padding:0px 5px 0px 0px"><font face="times new roman, serif" color="#666666"><b>Email</b></font></td><td style="margin:0.1px"><font face="times new roman, serif"><a href="mailto:sjbae1999@gmail.com" style="background-color:transparent;color:rgb(19,23,38)" target="_blank">sjbae1999@gmail.com</a><br></font></td></tr></tbody></table></td></tr><tr><td style="margin:0.1px;padding:7px 0px 0px"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="margin:0.1px;padding:0px 5px 0px 0px"><font face="times new roman, serif" color="#666666"><b>Mobile</b></font></td><td style="margin:0.1px"><font face="times new roman, serif"><a href="tel:(+82)01089640524" style="background-color:transparent;color:rgb(19,23,38)" target="_blank">(+82)01089640524</a><br></font></td></tr></tbody></table></td></tr><tr><td style="margin:0.1px;padding:7px 0px 0px"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="margin:0.1px;padding:0px 5px 0px 0px"><font face="times new roman, serif" color="#666666"><b>Web.</b></font></td><td style="margin:0.1px"><font face="times new roman, serif"><a href="https://tnet.snu.ac.kr/" style="background-color:transparent;color:rgb(19,23,38)" target="_blank"><span style="color:red"></span>https://tnet.snu.ac.kr/</a><br></font></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div><img width="0" height="0" class="mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/a81b6766e3d5b6518dc4010493c7772f5a46f598.png?u=11013800"></div>