From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id E6711160; Tue, 17 Jul 2018 11:53:10 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jul 2018 02:53:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,365,1526367600"; d="scan'208";a="245890330" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga005.fm.intel.com with ESMTP; 17 Jul 2018 02:53:07 -0700 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 17 Jul 2018 02:53:07 -0700 Received: from lcsmsx152.ger.corp.intel.com (10.186.165.231) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 17 Jul 2018 02:53:07 -0700 Received: from hasmsx106.ger.corp.intel.com ([169.254.10.9]) by LCSMSX152.ger.corp.intel.com ([10.186.165.231]) with mapi id 14.03.0319.002; Tue, 17 Jul 2018 12:53:03 +0300 From: "Stojaczyk, DariuszX" To: "Burakov, Anatoly" , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] memory: fix alignment in eal_get_virtual_area() Thread-Index: AQHUAysbvFJ2attVJE6zSUhg/weMCKSR0J4AgAA2LDD//9tzAIAABGMAgAA32zA= Date: Tue, 17 Jul 2018 09:53:02 +0000 Message-ID: References: <1528916894-1991-1-git-send-email-dariuszx.stojaczyk@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMDRlNjIyNTktOWU1MS00OTdiLThkYjAtNjU3NWNkOGNkMzZlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJ0XC8zNk8xdkFDSFBHU1pMV2ZocUQrRkNpR3lNOVZnK3F6dGhpbnFwWFNQS2s2TUtjWTBLZEdSRG9TZVdpNnNhVCJ9 x-ctpclassification: CTP_NT x-originating-ip: [10.104.17.213] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] memory: fix alignment in eal_get_virtual_area() X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jul 2018 09:53:12 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQnVyYWtvdiwgQW5hdG9s eQ0KPiBTZW50OiBNb25kYXksIEp1bHkgMTYsIDIwMTggNDoxNyBQTQ0KPiBUbzogU3RvamFjenlr LCBEYXJpdXN6WCA8ZGFyaXVzenguc3RvamFjenlrQGludGVsLmNvbT47IGRldkBkcGRrLm9yZw0K PiBDYzogc3RhYmxlQGRwZGsub3JnDQo+IFN1YmplY3Q6IFJlOiBbZHBkay1kZXZdIFtQQVRDSF0g bWVtb3J5OiBmaXggYWxpZ25tZW50IGluIGVhbF9nZXRfdmlydHVhbF9hcmVhKCkN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