Hi Michael what do you mean with “buffers are never returned”? could you provide an example? Usually the flow is: X = pfring_zc_get_packet_handle() pfring_zc_recv_pkt(queue, &X, 1); Then you can 1. process and reuse X for the next recv_pkt() call, or 2. if you want to hold X for late processing, you can allocate another buffer (provided that you have preallocated enough at cluster creation time).
Alfredo > On 19 Jan 2015, at 05:10, Michael Nicolazzo <[email protected]> wrote: > > Hi, > > I am looking for some information and advice on how to manage buffers in > PF_RING ZC. I noticed that in the examples, the buffers are never returned. > Is this normally how they should be managed? If I need to pass a buffer to a > thread that wishes to hold onto it and deal with it later, how should that be > done? > > Regards, > > Michael Nicolazzo > > _______________________________________________ > Ntop-misc mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop-misc _______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc
