From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 3BC1C11F5 for ; Mon, 29 Sep 2014 14:19:08 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 29 Sep 2014 05:19:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,620,1406617200"; d="scan'208";a="580603933" Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by orsmga001.jf.intel.com with ESMTP; 29 Sep 2014 05:25:21 -0700 Received: from irsmsx104.ger.corp.intel.com ([169.254.5.248]) by IRSMSX102.ger.corp.intel.com ([169.254.2.200]) with mapi id 14.03.0195.001; Mon, 29 Sep 2014 13:25:11 +0100 From: "Ananyev, Konstantin" To: "Richardson, Bruce" , "Wiles, Roger Keith (Wind River)" Thread-Topic: [dpdk-dev] [RFC] More changes for rte_mempool.h:__mempool_get_bulk() Thread-Index: AQHP20TxUYvnLZ5sIU2OzJoGryugjZwXIfcggACBnACAAFCmgIAAFU3A Date: Mon, 29 Sep 2014 12:25:11 +0000 Message-ID: <2601191342CEEE43887BDE71AB97725821387573@IRSMSX104.ger.corp.intel.com> References: <3B9A624B-ABBF-4A20-96CD-8D5607006FEA@windriver.com> <2601191342CEEE43887BDE71AB977258213851D2@IRSMSX104.ger.corp.intel.com> <4F9CE4A3-600B-42E0-B5C0-71D3AF7F0CF5@windriver.com> <20140929120613.GG12072@BRICHA3-MOBL> In-Reply-To: <20140929120613.GG12072@BRICHA3-MOBL> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Cc: "" Subject: Re: [dpdk-dev] [RFC] More changes for rte_mempool.h:__mempool_get_bulk() 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, 29 Sep 2014 12:19:09 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogUmljaGFyZHNvbiwgQnJ1 Y2UNCj4gU2VudDogTW9uZGF5LCBTZXB0ZW1iZXIgMjksIDIwMTQgMTowNiBQTQ0KPiBUbzogV2ls ZXMsIFJvZ2VyIEtlaXRoIChXaW5kIFJpdmVyKQ0KPiBDYzogQW5hbnlldiwgS29uc3RhbnRpbjsg PGRldkBkcGRrLm9yZz4NCj4gU3ViamVjdDogUmU6IFtkcGRrLWRldl0gW1JGQ10gTW9yZSBjaGFu Z2VzIGZvciBydGVfbWVtcG9vbC5oOl9fbWVtcG9vbF9nZXRfYnVsaygpDQo+IA0KPiBPbiBTdW4s IFNlcCAyOCwgMjAxNCBhdCAxMToxNzozNFBNICswMDAwLCBXaWxlcywgUm9nZXIgS2VpdGggd3Jv dGU6DQo+ID4NCj4gPiBPbiBTZXAgMjgsIDIwMTQsIGF0IDU6NDEgUE0sIEFuYW55ZXYsIEtvbnN0 YW50aW4gPGtvbnN0YW50aW4uYW5hbnlldkBpbnRlbC5jb20+IHdyb3RlOg0KPiA+DQo+ID4gPg0K PiA+ID4NCj4gPiA+PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiA+ID4+IEZyb206IGRl diBbbWFpbHRvOmRldi1ib3VuY2VzQGRwZGsub3JnXSBPbiBCZWhhbGYgT2YgV2lsZXMsIFJvZ2Vy IEtlaXRoDQo+ID4gPj4gU2VudDogU3VuZGF5LCBTZXB0ZW1iZXIgMjgsIDIwMTQgNjo1MiBQTQ0K PiA+ID4+IFRvOiA8ZGV2QGRwZGsub3JnPg0KPiA+ID4+IFN1YmplY3Q6IFtkcGRrLWRldl0gW1JG Q10gTW9yZSBjaGFuZ2VzIGZvciBydGVfbWV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