From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 318487E8E for ; Wed, 29 Oct 2014 16:13:45 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 29 Oct 2014 08:22:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,810,1406617200"; d="scan'208";a="622830507" Received: from pgsmsx101.gar.corp.intel.com ([10.221.44.78]) by fmsmga002.fm.intel.com with ESMTP; 29 Oct 2014 08:22:33 -0700 Received: from bgsmsx151.gar.corp.intel.com (10.224.48.42) by PGSMSX101.gar.corp.intel.com (10.221.44.78) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 29 Oct 2014 23:22:27 +0800 Received: from bgsmsx102.gar.corp.intel.com ([169.254.2.117]) by BGSMSX151.gar.corp.intel.com ([169.254.3.252]) with mapi id 14.03.0195.001; Wed, 29 Oct 2014 20:52:26 +0530 From: "Ramia, Kannan Babu" To: Neil Horman , "Richardson, Bruce" Thread-Topic: [dpdk-dev] [PATCH] add free hugepage function Thread-Index: AQHP8yO+PBJqCgj1ckKmdwm6tp/fdZxGRmGAgAA8xYCAAENhgIAAavTg Date: Wed, 29 Oct 2014 15:22:25 +0000 Message-ID: <682698A055A0F44AA47192B20141149711B6074C@BGSMSX102.gar.corp.intel.com> References: <1414551269-5820-1-git-send-email-haifeng.lin@huawei.com> <533710CFB86FA344BFBF2D6802E60286C7CAAB@SHSMSX101.ccr.corp.intel.com> <20141029034437.GA29486@mhcomputing.net> <533710CFB86FA344BFBF2D6802E60286C7CB42@SHSMSX101.ccr.corp.intel.com> <54508DE1.9090908@huawei.com> <20141029102635.GB8292@BRICHA3-MOBL> <20141029142745.GA14253@localhost.localdomain> In-Reply-To: <20141029142745.GA14253@localhost.localdomain> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.223.10.10] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] add free hugepage function 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: Wed, 29 Oct 2014 15:13:46 -0000 VGhlIHByb2JsZW0gc3RpbGwgcmVtYWlucyBpZiBvbmUgb2YgdGhlIHByb2Nlc3MgZ2V0cyBhYnJ1 cHRseSBraWxsZWQsIHRoZW4gdGhlIGNvcnJlc3BvbmRpbmcgcmVmY291bnQgd2lsbCBub3QgZ2V0 IGRlY3JlbWVudGVkLiBUaGVyZSBzaG91bGQgYmUgc29tZSBzY2F2ZW5naW5nIGZ1bmN0aW9uIHRv IGJlIGltcGxlbWVudGVkIHRvIGNoZWNrIHRoZSBwcm9jZXNzIGxpdmVsaW5lc3MuICANCg0KcmVn YXJkcw0KS2FubmFuIEJhYnUNCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IGRl diBbbWFpbHRvOmRldi1ib3VuY2VzQGRwZGsub3JnXSBPbiBCZWhhbGYgT2YgTmVpbCBIb3JtYW4N ClNlbnQ6IFdlZG5lc2RheSwgT2N0b2JlciAyOSwgMjAxNCA3OjU4IFBNDQpUbzogUmljaGFyZHNv biwgQnJ1Y2UNCkNjOiBkZXZAZHBkay5vcmcNClN1YmplY3Q6IFJlOiBbZHBkay1kZXZdIFtQQVRD SF0gYWRkIGZyZWUgaHVnZXBhZ2UgZnVuY3Rpb24NCg0KT24gV2VkLCBPY3QgMjksIDIwMTQgYXQg MTA6MjY6MzVBTSArMDAwMCwgQnJ1Y2UgUmljaGFyZHNvbiB3cm90ZToNCj4gT24gV2VkLCBPY3Qg MjksIDIwMTQgYXQgMDI6NDk6MDVQTSArMDgwMCwgTGluaGFpZmVuZyB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