From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Pernas Maradei Subject: mempool re-initialization Date: Wed, 20 Aug 2014 09:56:14 +0100 Message-ID: <53F462AE.2010509@emutex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable To: dev-VfR2kkLFssw@public.gmane.org Return-path: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi, At mempool creation time you can pass in a callback function to=20 rte_mempool_create() that DPDK will call for every mbuf on the mempool=20 so you can initialize them to your liking. However, there doesn't seem=20 to be a straight forward way do that again once the mempool is already=20 created though. I'm wondering if there's a clean/nice way to re-initialize all mempool's=20 mbufs once the mempool's been created? I was thinking on something like retrieving all mbufs one by one, do my=20 re-initialization and then put them back into the mempool. I'd have to=20 make sure of getting all mbufs out before start putting them back again=20 to avoid the cache, but that'd be OK. Of course this won't be on the=20 fast-path. Is there a cleaner way to do this? Any suggestion? Thanks, Nico. --=20 Nicol=E1s Pernas Maradei Software Engineer Emutex Ltd.