Hi Vithal, > -----Original Message----- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Vithal S Mohare > Sent: Monday, December 15, 2014 5:08 AM > To: dev at 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