From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/kQ+HL7HL7Yqg5Ev0gnvp/Bbj7oDd5zP01ZeapQBpHQ=; b=FyVwziZ0OkvcZzFDCMCJePSyd4cxj3SUkfTvifGNU3KbXb20P9m8VozZuifbvhTk1X tMe7lUSzJxtt1wfKK3C9bxpNYtgAwLf3+rqESz8mSGzVcZ67QvCWU9LWOWqxFecGfrVh 0u7mQzwuWc6WyZeJgvmdNd2EKQjtDgGvkqltbMb5f5BTBspjMoyUsNZmWaHoZzVtDx5M j/S99zyeo7Nm6whMy0ZHO0axHVaxgfX0iTOg+0/6L1Rdc3C3aIAlVcpAae9yHQGV/90f KBgVYToz91nxi7ZGx7CLSPIKySuCKxyh/zB3zBSilu0Hm0lpCba8EzYVMbABYwkOCQcT K3MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/kQ+HL7HL7Yqg5Ev0gnvp/Bbj7oDd5zP01ZeapQBpHQ=; b=G2paPdRHdbO+rsi1IWnZai1tLFlUnlMpkqKgn1qX29jmYoXvE5m1akCWzCxqS8eNj2 HQUGZPH8faZN+rHMrqfCqqr5yt+9+l/yis6m4jIvC7IUZ2U3GFoNMcVFrzxnrg3YopnT Q0McGZDlAOyeFNscsSCb11O9X/mqu1wxWnkpYpCnxDaDRuHQVkRjkOYu9WvvHBE30pgY cm/t4+cM6u6CcwsL4PH6dUsBnhDL/p8cK38NinFqfMU4mE5x75Sd6FRSkVHQkPK5+fKu t8CBdG9dLqbU6ZDvTk+T4a9EyR9mRrSTeC6sg2qwE0+ep6vTnMy4WRDMfBKPncQ4vMop 5PbA== X-Gm-Message-State: AElRT7F87SZ6lTe3foDmoSEydTRnGWWnayofRB6kWOBeZIcP2SghGyXp W45J80JBJAypexJp9Ncy0OApwQ== X-Google-Smtp-Source: AIpwx4+IERxYgdunhbcD0f3/KJ/AVHOMq+KpQpmEs7hMKK9aj2c8Fr0uBAoTiOFRbggO/lS161gqCg== X-Received: by 2002:a17:902:ab81:: with SMTP id f1-v6mr15863366plr.5.1522798893852; Tue, 03 Apr 2018 16:41:33 -0700 (PDT) Received: from xeon-e3 (204-195-71-95.wavecable.com. [204.195.71.95]) by smtp.gmail.com with ESMTPSA id t25sm6490418pge.88.2018.04.03.16.41.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Apr 2018 16:41:33 -0700 (PDT) Date: Tue, 3 Apr 2018 16:41:28 -0700 From: Stephen Hemminger To: Anatoly Burakov 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 Message-ID: <20180403164128.0946b6c8@xeon-e3> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3 11/68] eal: enable reserving physically contiguous memzones 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, 03 Apr 2018 23:41:34 -0000 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 */