<div dir="ltr"><div dir="ltr"><br></div><div>Added dev group.</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Dec 9, 2025 at 10:11 PM narsimharaj pentam <<a href="mailto:pnarsimharaj@gmail.com">pnarsimharaj@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi </div><div><br></div><div>I have a query related to ip fragmentation handling in DPDK.</div><div><br></div><div>The DPDK application is trying to send a larger packet than the configured MTU on the interface, before sending the packet to the i40e PMD the packet will</div>undergo fragmentation . The DPDK library function <b>"rte_ipv4_fragment_packet"</b> is used for fragmentation. Function <b>rte_ipv4_fragment_packet</b> will create<br>direct and indirect mbuf's for a fragment , <b>the indirect buffers will have reference to the mbuf of the actual packet (zero copy).</b><br><br>The application will call function rte_eth_tx_burst to transmit fragments , which internally invokes <b>i40e_xmit_pkts </b>, the question here is when should main application<br>mbuf should be freed , can It be freed immediately after i40e_xmit_pkts returns success, not sure because the mbuf's are queued up in software ring before actual transmit, <div>I am worried about the fragments holding references to the main application buffer.</div><div><br></div><div>Thanks.</div><div><br></div><div>BR</div><div>Narsimha</div></div>
</blockquote></div></div>