From: "Ananyev, Konstantin" <konstantin.ananyev@intel.com>
To: Vithal S Mohare <vmohare@arubanetworks.com>,
"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] Walk through a given mbuf-pool elements
Date: Mon, 15 Dec 2014 10:11:31 +0000 [thread overview]
Message-ID: <2601191342CEEE43887BDE71AB977258213BFB08@IRSMSX105.ger.corp.intel.com> (raw)
In-Reply-To: <98DB008FA2AC6644B40AD8C766FAB271014BDE0E4F@BOREAL.arubanetworks.com>
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
next prev parent reply other threads:[~2014-12-15 10:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-15 5:07 Vithal S Mohare
2014-12-15 10:11 ` Ananyev, Konstantin [this message]
2014-12-15 10:38 ` Vithal S Mohare
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2601191342CEEE43887BDE71AB977258213BFB08@IRSMSX105.ger.corp.intel.com \
--to=konstantin.ananyev@intel.com \
--cc=dev@dpdk.org \
--cc=vmohare@arubanetworks.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).