From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eUi4kIu/l1ViAcQWS9QFiWZTjqwc8RA3OxaPMcfQSQ0=; b=GNEtu25cpPdWbhv8jdJlbdszdEIeqXcGqm2tHABJPxH377EBghIZWUZO51gZMUzOq3m0MYXVaRrFeCE4kxlOGNWneUIt+PNG7M1XjZ5Jr5RcPa3AAEbMh9edy0GQLWpy0V4JCahZYIbAauUWSNK+r/0wKNCS1bpdlFs5u96tpek= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from [10.232.14.39] (14.142.187.166) by AM0PR04MB4674.eurprd04.prod.outlook.com (2603:10a6:208:75::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Thu, 27 Sep 2018 11:05:37 +0000 To: Anatoly Burakov , dev@dpdk.org 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 References: From: Shreyansh Jain Message-ID: Date: Thu, 27 Sep 2018 16:35:05 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MAXPR0101CA0006.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:c::16) To AM0PR04MB4674.eurprd04.prod.outlook.com (2603:10a6:208:75::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 36702a04-3498-4a43-f9dc-08d624692c3a X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4674; X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4674; 3:haM6AiiAIvrI6oGzr0rf4hE1yq6oX3dRQ20803GI7JqszgyfvQ2mAoMANKtyJGtcnx4KqkJaRgMRiTqovClL5xbsvxQfIa//Xpk5qKwEdjvE3NSZJWUB5t5bEkCFA/heGqZFVvndofE1UGjHjFj/Eebiybui88K0wqRe4DTFTzn+/naZMF07Spi6H7VbUMCTYCaj6c0PNeF5Hl/VrSrsYxe64KLWlpxntaUtPmh9LxSjv+ydoW/mi6wS2btepxoT; 25:Ad+Qb+OGdJlIjcfnwPL6qocgQo24YxwvxcH9f28Z2KTl2hwO4TFuyYu+zUDqmuAgtu/zQBnTEPHRnrkaka26Mg1zLwNqGAUQKX3WF+GcYnCihBCx+si3TwxWL4Qsu1qijJoMGWFBjOiLRStXJaDn+fUYFt9U17+6xgU9+NBPNFTsSZJy+x0F3RXgY5uMabLIq8RffbOgRq/Z/pWglkB3BDbPXujlnSNhrHlEebTGjof5h5QaKj5HuzVx9ORN0stwaOZmYrvNlY7DGwXAQye6yKKoOiNhQeTiemJXHhCWwi+3BPTPwv6dCRP4/vlLs8ElpuUQIwoHp8bsdIcYxG4wvw==; 31:xOSGDHepSwVn+H+vUESNSL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RFKVIB8Fbxv9zCes5E3ACGqfV0A4/ugfhcDv9BIHj1CYNBCUWc+YHJwVrQJQ/E6Fx49KjMwLZdZbIk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699)(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231355)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(201708071742011)(7699051); SRVR:AM0PR04MB4674; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4674; X-Forefront-PRVS: 0808323E97 X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(6049001)(136003)(346002)(396003)(366004)(39860400002)(376002)(189003)(199004)(52116002)(16576012)(34290500001)(26005)(31696002)(2616005)(31686004)(105586002)(66066001)(3846002)(65826007)(6116002)(50466002)(5660300001)(67846002)(86362001)(2486003)(229853002)(25786009)(23676004)(956004)(386003)(16526019)(52146003)(77096007)(58126008)(76176011)(6246003)(486006)(316002)(446003)(55236004)(11346002)(44832011)(39060400002)(476003)(4326008)(186003)(81156014)(81166006)(64126003)(305945005)(7736002)(478600001)(8676002)(6666003)(36756003)(2906002)(8936002)(6486002)(230700001)(47776003)(106356001)(97736004)(65956001)(65806001)(5009440100003)(53936002)(68736007)(7416002)(59833002); DIR:OUT; SFP:1501; SCL:5; SRVR:AM0PR04MB4674; H:[10.232.14.39]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTBQUjA0TUI0Njc0OzIzOjNsOEhvTW8rMkhXOXlwQTdRVlhScVk5Tnl6?= =?utf-8?B?dWkyd0h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6plGSStk/3LfUoYWjgG3fQFbV3n92pKxrZJOoCQqnqxy3e9H77yJrlUyFeiDqXRSrUUPJrx6umZ8VwH0nfT9Fhe4qg1C8jYy804Q9oFp5nE4GxKPjfKunFYYRhEv0ZWkXGDTr7736pgdfDJwviM28O+t78IE0Y333AubduNiDUxKK864U8mhxI/UOCLTccNn0q1qzUYivnDP4MFrBwYNcYxA2kKCT9I6giUdAx5Rm9IoIcsRtVc65Dpjz3PXYdP9Lpjh4FDiALWYNYRIVlnCFPCWjGzyI6qVxdNwjgSB57xc5fa4JykitwYrywgqkLCKDbc9eFO91WKWMVcj7bWGMGGeuZAblxepJ0FMOwXV+Nx2oTzDi/sUiFxA98omtEn746QcJt41EZaYdPv6QCSatsmpw==; 5:qp8IPdEaxHx69KEOKWTHA5E85SDXmMqLMv9lMMKaedLRVFJH3svdDOEqdtp7KJ+Ur0bgRzw9LnJW2WycfhYmnSnX3DI+2qtIGG9rUIPTs/Dl/HMEKaFqq7vAqhVc7kjQzzosHwvBjZrgxaKBVzmvvvYmN7FGRQ3snKqpFAcltxA=; 7:nUim4LXZI3edFQUyll8GGA2hO55P2tiHsJof+0E8Q1G7oxzbPSN3zoQKst9ATwcw6qNF2pE64v+pHjK0U0VPZJn80m06hI7WzSpnNClGj0KLjXGHVNKvNG+7EmIUH+bX3Zx82HXcwSbuHlD6IQ+UsqyQ6niAwB+UNtMCzQhgJGt1pP2YIlzhFrHyp2Dm6j/8ITbbIKN8DUplF1fKiHRfilJM7sKr78xvTqLe+7HdzNFe181jyOZUQ6Nu3n3ehCfy SpamDiagnosticOutput: 1:22 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2018 11:05:37.1594 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 36702a04-3498-4a43-f9dc-08d624692c3a X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4674 Subject: Re: [dpdk-dev] [PATCH v6 01/21] mem: add length to memseg list 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: Thu, 27 Sep 2018 11:05:47 -0000 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