From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v3 11/68] eal: enable reserving physically contiguous memzones Date: Tue, 3 Apr 2018 16:41:28 -0700 Message-ID: <20180403164128.0946b6c8@xeon-e3> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, keith.wiles@intel.com, jianfeng.tan@intel.com, andras.kovacs@ericsson.com, laszlo.vadkeri@ericsson.com, benjamin.walker@intel.com, bruce.richardson@intel.com, thomas@monjalon.net, konstantin.ananyev@intel.com, kuralamudhan.ramakrishnan@intel.com, louise.m.daly@intel.com, nelio.laranjeiro@6wind.com, yskoh@mellanox.com, pepperjo@japf.ch, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, olivier.matz@6wind.com, shreyansh.jain@nxp.com, gowrishankar.m@linux.vnet.ibm.com To: Anatoly Burakov Return-path: Received: from mail-pl0-f65.google.com (mail-pl0-f65.google.com [209.85.160.65]) by dpdk.org (Postfix) with ESMTP id AC8631BA81 for ; Wed, 4 Apr 2018 01:41:34 +0200 (CEST) Received: by mail-pl0-f65.google.com with SMTP id c21-v6so7725932plz.10 for ; Tue, 03 Apr 2018 16:41:34 -0700 (PDT) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, 4 Apr 2018 00:21:23 +0100 Anatoly Burakov wrote: > This adds a new set of _contig API's to rte_memzone. For now, > hugepage memory is always contiguous, but we need to prepare the > drivers for the switch. > > Signed-off-by: Anatoly Burakov Why not make fragmentation an optional flag to the memzone_reserved rather than a new API. That way less drivers need to be changed. #define RTE_MEMZONE_SPARSE 0x00100000 /* Allow zone to be non-contiguous */