* [dpdk-dev] Walk through a given mbuf-pool elements
@ 2014-12-15 5:07 Vithal S Mohare
2014-12-15 10:11 ` Ananyev, Konstantin
0 siblings, 1 reply; 3+ messages in thread
From: Vithal S Mohare @ 2014-12-15 5:07 UTC (permalink / raw)
To: dev
[Re-sending the mail after registering to dpdk.org]
Team,
I am looking for a code/api to walk through a dpdk mbuf-pool elements (similar to rte_mempool_walk() but for elements within mempool). Calling pkt_mbuf_alloc for 'n' elements and then _free is not an option. Rte_mempool_obj_itr() walks through, but does lot more than walking itself. Please suggest if anybody has better alternatives.
Thanks,
-Vithal
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] Walk through a given mbuf-pool elements
2014-12-15 5:07 [dpdk-dev] Walk through a given mbuf-pool elements Vithal S Mohare
@ 2014-12-15 10:11 ` Ananyev, Konstantin
2014-12-15 10:38 ` Vithal S Mohare
0 siblings, 1 reply; 3+ messages in thread
From: Ananyev, Konstantin @ 2014-12-15 10:11 UTC (permalink / raw)
To: Vithal S Mohare, dev
Hi Vithal,
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Vithal S Mohare
> Sent: Monday, December 15, 2014 5:08 AM
> To: dev@dpdk.org
> Subject: [dpdk-dev] Walk through a given mbuf-pool elements
>
> [Re-sending the mail after registering to dpdk.org]
> Team,
>
> I am looking for a code/api to walk through a dpdk mbuf-pool elements (similar to rte_mempool_walk() but for elements within
> mempool). Calling pkt_mbuf_alloc for 'n' elements and then _free is not an option. Rte_mempool_obj_itr() walks through, but does
> lot more than walking itself. Please suggest if anybody has better alternatives.
Not sure why rte_mempool_obj_iter() wouldn't work for you?
It just walks through all elements of the pool and for ach calls a user provided callback.
Nothing else.
Konstantin
>
> Thanks,
> -Vithal
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] Walk through a given mbuf-pool elements
2014-12-15 10:11 ` Ananyev, Konstantin
@ 2014-12-15 10:38 ` Vithal S Mohare
0 siblings, 0 replies; 3+ messages in thread
From: Vithal S Mohare @ 2014-12-15 10:38 UTC (permalink / raw)
To: Ananyev, Konstantin, dev
Hi Konstantin,
Thanks for the reply.
I was trying to find more intuitive one compare to rte_mempool_obj_iter(). Once mempool is created with objects, shouldn't we able to walk-through by just passing 'mp' object and avoiding other params like vaddr, elt_size etc. For now, I could use callback called during mempool creation itself.
Thanks,
-Vithal
-----Original Message-----
From: Ananyev, Konstantin [mailto:konstantin.ananyev@intel.com]
Sent: Monday, December 15, 2014 3:42 PM
To: Vithal S Mohare; dev@dpdk.org
Subject: RE: Walk through a given mbuf-pool elements
Hi Vithal,
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Vithal S Mohare
> Sent: Monday, December 15, 2014 5:08 AM
> To: dev@dpdk.org
> Subject: [dpdk-dev] Walk through a given mbuf-pool elements
>
> [Re-sending the mail after registering to dpdk.org] Team,
>
> I am looking for a code/api to walk through a dpdk mbuf-pool elements (similar to rte_mempool_walk() but for elements within
> mempool). Calling pkt_mbuf_alloc for 'n' elements and then _free is not an option. Rte_mempool_obj_itr() walks through, but does
> lot more than walking itself. Please suggest if anybody has better alternatives.
Not sure why rte_mempool_obj_iter() wouldn't work for you?
It just walks through all elements of the pool and for ach calls a user provided callback.
Nothing else.
Konstantin
>
> Thanks,
> -Vithal
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-15 10:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-15 5:07 [dpdk-dev] Walk through a given mbuf-pool elements Vithal S Mohare
2014-12-15 10:11 ` Ananyev, Konstantin
2014-12-15 10:38 ` Vithal S Mohare
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).