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 E99215694 for ; Fri, 27 Feb 2015 14:10:43 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 27 Feb 2015 05:06:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,659,1418112000"; d="scan'208";a="460268947" Received: from irsmsx108.ger.corp.intel.com ([163.33.3.3]) by FMSMGA003.fm.intel.com with ESMTP; 27 Feb 2015 04:55:03 -0800 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.117]) by IRSMSX108.ger.corp.intel.com ([169.254.11.218]) with mapi id 14.03.0195.001; Fri, 27 Feb 2015 13:10:40 +0000 From: "Ananyev, Konstantin" To: "vadim.suraev@gmail.com" Thread-Topic: [dpdk-dev] [PATCH] rte_mbuf: scattered pktmbufs freeing optimization Thread-Index: AQHQUhpF34jL5PPo00ycUKUBx6MD550EVXVggAAVYACAAAsccIAAAFXQ Date: Fri, 27 Feb 2015 13:10:39 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258213F2E5B@irsmsx105.ger.corp.intel.com> References: <1424992506-20484-1-git-send-email-vadim.suraev@gmail.com> <2601191342CEEE43887BDE71AB977258213F2C93@irsmsx105.ger.corp.intel.com> <2601191342CEEE43887BDE71AB977258213F2E3D@irsmsx105.ger.corp.intel.com> In-Reply-To: <2601191342CEEE43887BDE71AB977258213F2E3D@irsmsx105.ger.corp.intel.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="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] rte_mbuf: scattered pktmbufs freeing optimization 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: Fri, 27 Feb 2015 13:10:44 -0000 DQo+IEZyb206IFZhZGltIFN1cmFldiBbbWFpbHRvOnZhZGltLnN1cmFldkBnbWFpbC5jb21dDQo+ IFNlbnQ6IEZyaWRheSwgRmVicnVhcnkgMjcsIDIwMTUgMTI6MTkgUE0NCj4gVG86IEFuYW55ZXYs IEtvbnN0YW50aW4NCj4gQ2M6IGRldkBkcGRrLm9yZw0KPiBTdWJqZWN0OiBSRTogW2RwZGstZGV2 XSBbUEFUQ0hdIHJ0ZV9tYnVmOiBzY2F0dGVyZWQgcGt0bWJ1ZnMgZnJlZWluZyBvcHRpbWl6YXRp b24NCj4gDQo+IEhpLCBLb25zdGFudGluLA0KPiA+U2VlbXMgcmVhbGx5IHVzZWZ1bC4NCj4gPk9u ZSB0aG91Z2h0IC0gd2h5IHRvIGludHJvZHVjZSB0aGUgbGltaXRhdGlvbiB0aGF0IGFsbCBtYnVm cyBoYXZlIHRvIGJlIGZyb20gdGhlIHNhbWUgbWVtcG9vbD8NCj4gPkkgdGhpbmsgeW91IGNhbiBy ZW9yZGVyIGl0IGEgYml0LCBzbyBpdCBjYW4gaGFuZGxlIHNpdHVhdGlvbiB3aGVuIGNoYWluZWQg bWJ1ZnMgYmVsb25nIHRvIGRpZmZlcmVudCBtZW1wb29scy4NCj4gSSBoYWQgYSBkb3VidCwgbXkg Y29uY2VybiB3YXMgaG93IHByYWN0aWNhbCBpcyB0aGF0IChtdWx0aXBsZSBtZW1wb29scykgY2Fz ZT8NCg0KV2VsbCwgaW5zaWRlIERQREsgd2UgaGF2ZSBhdCBsZWFzdCAyIHNhbXBsZXM6IGlwX2Zy YWdtZW50YXRpb24gYW5kIGlwdjRfbXVsdGljYXN0IHRoYXQgY2hhaW4gdG9nZXRoZXIgbWJ1ZnMg ZnJvbSBkaWZmZXJlbnQgcG9vbHMuICANCkhvdyBvZnRlbiB0aGF0I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