From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shreyansh Jain Subject: Re: [PATCH v6 01/21] mem: add length to memseg list Date: Thu, 27 Sep 2018 16:35:05 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Bruce Richardson , laszlo.madarassy@ericsson.com, laszlo.vadkerti@ericsson.com, andras.kovacs@ericsson.com, winnie.tian@ericsson.com, daniel.andrasi@ericsson.com, janos.kobor@ericsson.com, geza.koblo@ericsson.com, srinath.mannam@broadcom.com, scott.branden@broadcom.com, ajit.khaparde@broadcom.com, keith.wiles@intel.com, thomas@monjalon.net, shahafs@mellanox.com, arybchenko@solarflare.com, alejandro.lucero@netronome.com To: Anatoly Burakov , dev@dpdk.org Return-path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01hn0223.outbound.protection.outlook.com [104.47.2.223]) by dpdk.org (Postfix) with ESMTP id D628C1B1F2 for ; Thu, 27 Sep 2018 13:05:46 +0200 (CEST) In-Reply-To: Content-Language: en-US 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 Thursday 27 September 2018 04:10 PM, Anatoly Burakov wrote: > Previously, to calculate length of memory area covered by a memseg > list, we would've needed to multiply page size by length of fbarray > backing that memseg list. This is not obvious and unnecessarily > low level, so store length in the memseg list itself. > > Signed-off-by: Anatoly Burakov > --- > drivers/bus/pci/linux/pci.c | 2 +- > lib/librte_eal/bsdapp/eal/eal_memory.c | 2 ++ > lib/librte_eal/common/eal_common_memory.c | 5 ++--- > lib/librte_eal/common/include/rte_eal_memconfig.h | 1 + > lib/librte_eal/linuxapp/eal/eal_memalloc.c | 3 ++- > lib/librte_eal/linuxapp/eal/eal_memory.c | 4 +++- > 6 files changed, 11 insertions(+), 6 deletions(-) > Acked-by: Shreyansh Jain