From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 66A7F6A80 for ; Mon, 13 Oct 2014 13:35:48 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 13 Oct 2014 04:43:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,709,1406617200"; d="scan'208";a="613586733" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by fmsmga002.fm.intel.com with ESMTP; 13 Oct 2014 04:43:24 -0700 Received: from irsmsx106.ger.corp.intel.com (163.33.3.31) by IRSMSX101.ger.corp.intel.com (163.33.3.153) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 13 Oct 2014 12:43:24 +0100 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.174]) by IRSMSX106.ger.corp.intel.com ([169.254.8.193]) with mapi id 14.03.0195.001; Mon, 13 Oct 2014 12:43:24 +0100 From: "Ananyev, Konstantin" To: "Alex Markuze (alex@weka.io)" Thread-Topic: [dpdk-dev] Aligned RX data. Thread-Index: AQHP4hLPYZxU3jwu8Uax0IpfL6gTkZwkY58QgABUoYCAABPcYIAAADEwgAYXbACAAsv7AIAAPi8wgAAAHgA= Date: Mon, 13 Oct 2014 11:43:23 +0000 Message-ID: <2601191342CEEE43887BDE71AB97725821393396@IRSMSX105.ger.corp.intel.com> References: <2601191342CEEE43887BDE71AB97725821391089@IRSMSX105.ger.corp.intel.com> <2601191342CEEE43887BDE71AB9772582139126C@IRSMSX105.ger.corp.intel.com> <2601191342CEEE43887BDE71AB97725821391286@IRSMSX105.ger.corp.intel.com> <2601191342CEEE43887BDE71AB9772582139336F@IRSMSX105.ger.corp.intel.com> In-Reply-To: <2601191342CEEE43887BDE71AB9772582139336F@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.180] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Aligned RX data. 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, 13 Oct 2014 11:35:49 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQW5hbnlldiwgS29uc3Rh bnRpbg0KPiBTZW50OiBNb25kYXksIE9jdG9iZXIgMTMsIDIwMTQgMTI6MzAgUE0NCj4gVG86IEFu YW55ZXYsIEtvbnN0YW50aW4NCj4gU3ViamVjdDogRlc6IFtkcGRrLWRldl0gQWxpZ25lZCBSWCBk YXRhLg0KPiANCj4gDQo+IA0KPiBGcm9tOiBBbGV4IE1hcmt1emUgW21haWx0bzphbGV4QHdla2Eu aW9dDQo+IFNlbnQ6IE1vbmRheSwgT2N0b2JlciAxMywgMjAxNCA5OjQ3IEFNDQo+IFRvOiBBbmFu eWV2LCBLb25zdGFudGluDQo+IENjOiBkZXZAZHBkay5vcmcNCj4gU3ViamVjdDogUmU6IFtkcGRr LWRldl0gQWxpZ25lZCBSWCBkYXRhLg0KPiANCj4gSGkgQWxsLA0KPiBJcyB0aGVyZSBhIHdheSB0 byBjcmVhdGUgYSBtZW1wb29sIHN1Y2ggdGhhdCBhbGwgbWJ1ZnMgYXJlIGFsaWduZWQgdG8gWC4g bGV0cyBzYXkgWCBpcyA1MTIuDQo+IA0KPiBUaGFua3MuDQo+IA0KDQpGb3IgZXhhbXBsZSBzb21l dGhpbmcgbGlrZSB0aGF0Og0KDQpzdHJ1Y3QgcnRlX21lbXBvb2wgKg0KbWVtcG9vbF94ejFfY3Jl YXRlKHVpbnQzMl90IGVsdF9udW0sIGludDMyX3Qgc29ja2V0X2lkKQ0K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