From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from jaguar.aricent.com (jaguar.aricent.com [121.241.96.11]) by dpdk.org (Postfix) with ESMTP id 28ADDDE4 for ; Sun, 27 Oct 2013 12:06:27 +0100 (CET) Received: from jaguar.aricent.com (localhost [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id 77A4936B5B for ; Sun, 27 Oct 2013 16:36:53 +0530 (IST) Received: from GUREXHT02.ASIAN.AD.ARICENT.COM (gurexht02.asian.ad.aricent.com [10.203.171.138]) by jaguar.aricent.com (Postfix) with ESMTP id 6C10536B32 for ; Sun, 27 Oct 2013 16:36:53 +0530 (IST) Received: from GUREXMB01.asian.ad.aricent.com ([10.203.171.134]) by GUREXHT02.ASIAN.AD.ARICENT.COM ([10.203.171.138]) with mapi; Sun, 27 Oct 2013 16:36:53 +0530 From: Prashant Upadhyaya To: "dev@dpdk.org" Date: Sun, 27 Oct 2013 16:36:52 +0530 Thread-Topic: Request for a feature in PMD Thread-Index: Ac7TA4ilNzseLCrVRxmYHF/ulLjBng== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 X-TM-AS-MML: No Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Request for a feature in PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Oct 2013 11:06:27 -0000 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 somewh= ere in the header of mbuf that the PMD API must not free this buffer after = doing the transmission. The user will take care of freeing this buffer on his own depending on his = own application logic (ofcourse if the user does not do so, it is a bug in = his application for the buffer leak) Why do I want this ? I was porting a usecase from Cavium Octeon SDK which u= ses the PKO api's to send a packet out. PKO is the packet output unit of Cavium processor to which you submit the b= uffers to send and it frees it for you (just like our PMD in DPDK) However PKO API gives me a nice facility where I can tell PKO not to free t= he buffer with the help of a bit. This is particularly useful when the same buffer has to be sent out multipl= e times. Now to port the above usecase in DPDK, I had to make a copy of the buffer a= nd submit it to the PMD (because it _will_ free it) to give the application= the similar flavour as PKO in DPDK. However the copy is a performance pena= lty. It would be nice if PMD itself gives this facility. Would request the opinion of PMD developers regarding the above. Regards -Prashant =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D Please refer to http://www.aricent.com/legal/email_disclaimer.html for important disclosures regarding this electronic communication. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D