[dpdk-dev] Request for a feature in PMD

2013-10-27 Thread Prashant Upadhyaya
Hi, I have a feature request in the PMD. Today, when I want to send a packet out, I hand over an mbuf to the PMD API. The PMD API then takes care of transferring the data and free's the mbuf to the relevant pool. What I am looking for is a facility that I should be able to specify somewhere in

[dpdk-dev] Request for a feature in PMD

2013-10-27 Thread Gal Sagie
Hello Prashant, You can achieve this behavior, you can look at either the rte_mbuf clone API or look at the reference count field inside the mbuf structure. If you increase this ref count the TX function will not free your mbuf. (there are some API calls to update this variable) Gal. On Sun, Oc

[dpdk-dev] Request for a feature in PMD

2013-10-27 Thread Daniel Kaminsky
Hi Prashant, >From your description it seems that you can use rte *pktmbuf_refcnt_update*method. Increase the reference count by one before sending the mbuf, and decrease it when you finish with it. Regards, Daniel Kaminsky On Sun, Oct 27, 2013 at 2:06 PM, Prashant Upadhyaya < prashant.upadhyay