From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 331C4A0507; Wed, 27 Apr 2022 10:17:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1938240E78; Wed, 27 Apr 2022 10:17:44 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 39F1540691 for ; Wed, 27 Apr 2022 10:17:43 +0200 (CEST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Subject: RE: [RFC] eal: allow worker lcore stacks to be allocated from hugepage memory Date: Wed, 27 Apr 2022 10:17:40 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D87006@smartserver.smartshare.dk> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [RFC] eal: allow worker lcore stacks to be allocated from hugepage memory Thread-Index: AdhZtD3exRIDMDmURrSzpSIy2/ecQwATBcNA References: <20220426122000.24743-1-donw@xsightlabs.com> <20220426075858.2c28f427@hermes.local> <53a03de6-fb78-986e-64f6-890b08321343@xsightlabs.com> <20220426142124.524069c5@hermes.local> From: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= To: "Don Wallwork" , "Stephen Hemminger" , "Anatoly Burakov" , "Dmitry Kozlyuk" , "Bruce Richardson" Cc: X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org K0NDOiBFQUwgYW5kIE1lbW9yeSBtYWludGFpbmVycy4NCg0KPiBGcm9tOiBEb24gV2FsbHdvcmsg W21haWx0bzpkb253QHhzaWdodG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