From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 898F48044 for ; Mon, 15 Dec 2014 11:11:34 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 15 Dec 2014 02:11:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,579,1413270000"; d="scan'208";a="623878241" Received: from irsmsx155.ger.corp.intel.com ([163.33.192.3]) by orsmga001.jf.intel.com with ESMTP; 15 Dec 2014 02:11:32 -0800 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.144]) by IRSMSX155.ger.corp.intel.com ([169.254.14.228]) with mapi id 14.03.0195.001; Mon, 15 Dec 2014 10:11:31 +0000 From: "Ananyev, Konstantin" To: Vithal S Mohare , "dev@dpdk.org" Thread-Topic: Walk through a given mbuf-pool elements Thread-Index: AdAV+ITkEUt7RBPFRD2vipPFJF40NgCLG22gAAp5M0A= Date: Mon, 15 Dec 2014 10:11:31 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258213BFB08@IRSMSX105.ger.corp.intel.com> References: <98DB008FA2AC6644B40AD8C766FAB271014BDE0E4F@BOREAL.arubanetworks.com> In-Reply-To: <98DB008FA2AC6644B40AD8C766FAB271014BDE0E4F@BOREAL.arubanetworks.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] Walk through a given mbuf-pool elements X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2014 10:11:35 -0000 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 >=20 > [Re-sending the mail after registering to dpdk.org] > Team, >=20 > I am looking for a code/api to walk through a dpdk mbuf-pool elements (si= milar 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 alte= rnatives. 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 pro= vided callback. Nothing else. Konstantin >=20 > Thanks, > -Vithal