<div dir="ltr">In this case: 

<a href="https://doc.dpdk.org/guides/howto/packet_capture_framework.html">9. DPDK packet capture libraries and tools — Data Plane Development Kit 22.11.0 documentation</a>, which process is responsible of deallocing the memory occupied by a packet ? the primary process or the dpdk-dumpcap tool process ?<div>if one process deallocates a memory, the second one will point to nothing...</div><div><br></div><div>ikuzar</div><div><br></div><div>i</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 25 nov. 2022 à 18:09, Stephen Hemminger <<a href="mailto:stephen@networkplumber.org">stephen@networkplumber.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, 25 Nov 2022 17:27:46 +0100<br>
ikuzar RABE <<a href="mailto:ikuzar9295@gmail.com" target="_blank">ikuzar9295@gmail.com</a>> wrote:<br>
<br>
> Hi all,<br>
> <br>
> I would like to know how do you usually proceed to retrieve and share the<br>
> same packet read from NIC port between two different processes ? I try to<br>
> work in zero-copy way.<br>
> <br>
> The first process job consists in parsing the packet and make some protocol<br>
> statistics. The second one dumps the same packet into pcap file for further<br>
> analysis with wireshark for example.<br>
> <br>
> I think none of the cases exposed here corresponds to my need: 43.<br>
> Multi-process Support — Data Plane Development Kit 22.11.0-rc4<br>
> documentation (<a href="http://dpdk.org" rel="noreferrer" target="_blank">dpdk.org</a>)<br>
> <<a href="https://doc.dpdk.org/guides/prog_guide/multi_proc_support.html#:~:text=Standalone%20DPDK%20processes%20are%20primary,process%20with%20same%20DPDK%20version" rel="noreferrer" target="_blank">https://doc.dpdk.org/guides/prog_guide/multi_proc_support.html#:~:text=Standalone%20DPDK%20processes%20are%20primary,process%20with%20same%20DPDK%20version</a>.>.<br>
> Am I wrong ?<br>
> <br>
> is there a dpdk-compliant way to do it with threads instead of processes ?<br>
> <br>
> Thank you for your help.<br>
> <br>
> Regards,<br>
> <br>
> ikuzar<br>
<br>
Use a ring buffer.<br>
Why are you reinventing what the pdump library does?<br>
</blockquote></div>