DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] mempool re-initialization
@ 2014-08-20  8:56 Nicolas Pernas Maradei
  0 siblings, 0 replies; only message in thread
From: Nicolas Pernas Maradei @ 2014-08-20  8:56 UTC (permalink / raw)
  To: dev

Hi,

At mempool creation time you can pass in a callback function to 
rte_mempool_create() that DPDK will call for every mbuf on the mempool 
so you can initialize them to your liking. However, there doesn't seem 
to be a straight forward way do that again once the mempool is already 
created though.

I'm wondering if there's a clean/nice way to re-initialize all mempool's 
mbufs once the mempool's been created?

I was thinking on something like retrieving all mbufs one by one, do my 
re-initialization and then put them back into the mempool. I'd have to 
make sure of getting all mbufs out before start putting them back again 
to avoid the cache, but that'd be OK. Of course this won't be on the 
fast-path.

Is there a cleaner way to do this? Any suggestion?

Thanks,
Nico.

-- 
Nicolás Pernas Maradei
Software Engineer
Emutex Ltd.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-20  8:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-20  8:56 [dpdk-dev] mempool re-initialization Nicolas Pernas Maradei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).