From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10077.outbound.protection.outlook.com [40.107.1.77]) by dpdk.org (Postfix) with ESMTP id 05FC41B1EC for ; Thu, 27 Sep 2018 13:04:16 +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=2SavshZQ9T7BNDDrd8F63NGhu+k9S4i7GlChCbk5Ybw=; b=MkJhopOt7ugZ+EM6l1jY3Ms3qtUsswjojVFRauoTIk7sntDrOgMzpJ31CaKrMxb+lBUAODQbMUERTvi3wevUobZ2j9sZxP4DATjDzfZFnkPqBGc4QYYp7KJP7i3Gdz4FMDPYFfiYsDzF6ZcZEqpsiW6wn8bARQsCiGOFJVoIn54= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from [10.232.14.39] (14.142.187.166) by VI1PR04MB4685.eurprd04.prod.outlook.com (2603:10a6:803:71::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.22; Thu, 27 Sep 2018 11:04:06 +0000 To: Anatoly Burakov , dev@dpdk.org Cc: Neil Horman , John McNamara , Marko Kovacevic , Hemant Agrawal , Matan Azrad , Shahaf Shuler , Yongseok Koh , Maxime Coquelin , Tiwei Bie , Zhihong Wang , Bruce Richardson , Olivier Matz , Andrew Rybchenko , 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, alejandro.lucero@netronome.com References: From: Shreyansh Jain Message-ID: Date: Thu, 27 Sep 2018 16:33:39 +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: MAXPR0101CA0016.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:c::26) To VI1PR04MB4685.eurprd04.prod.outlook.com (2603:10a6:803:71::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e99d98bb-552e-420d-4b91-08d62468f51f X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB4685; X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB4685; 3:oRLi7TJ9+R52BDGi1Fnk+ckKsK6eSe/TVAaYADVzEWrCtGz42l76nRZ6TIimKCn52Eaxow7o4vfARfjk1YRHKGtQGcnwCVgTNMMS66ClB2GDQBPF5Aa3geQWOhZ27ihrZpB5xkH+McEzmtHbMZQUiBlyDeZbaago1l2SImuj+78BRtmhMz8DvCLgahaRM3vwamPVmykgXp4k2RZF46AgU5RuGrwogIQrZBkgmfWihM7W0yjzL/a332RlsxXitdJN; 25:0vyZDzax7NhFS6pt/gQFMOFvuhrL+WyGJxjQIg5L7uDPE4RSZ6fBntR3uN2499T2Epfdo5gv28Q758Aw/ZBzVkkQGG+28u7EPYbEy6UYy7/LUOVj0pOA/Xf9uyWQnwntpbdBLtd9Sp/O6rXu7WVEbmxR+sJ8WoRXbu6//MKKxRC8ngR/e6aTsvwMzq2jclSSfFDTtC06RC69E/lr3nWoCLEhPm4O/D7UQkaACQkDflBJU5myr0h9wItfkE84FmpK6Xln4u5eu/DboAI7MTkBH5nw0WC7+aPU0BLu4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DD5RiGrPNgLaYtD9wTzcdrdU4yXpmSel2GDPFcV9By+mIDEnTJlIGWfaOYU7XQhkgkocReMjBuivMgSSwb2WzFifUItoplFD2FMnH+TZRW6qNYDra+QeTk5jxQ3NxD7Q2HzzPe09OfLdbx+SO1ry92OHbQldb+c0X5PYAJOzyZQGWBvrH5UljAWTD5I= 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)(93006095)(93001095)(3002001)(10201501046)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(201708071742011)(7699051); SRVR:VI1PR04MB4685; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB4685; X-Forefront-PRVS: 0808323E97 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(366004)(376002)(396003)(346002)(136003)(39860400002)(199004)(189003)(86362001)(31696002)(8676002)(8936002)(6486002)(36756003)(478600001)(77096007)(106356001)(5009440100003)(6246003)(105586002)(26005)(47776003)(53936002)(16526019)(186003)(5660300001)(229853002)(68736007)(65806001)(34290500001)(386003)(305945005)(7736002)(81166006)(66066001)(65956001)(65826007)(81156014)(31686004)(3846002)(6116002)(52116002)(50466002)(2486003)(23676004)(52146003)(4326008)(230700001)(39060400002)(76176011)(64126003)(97736004)(58126008)(16576012)(6666003)(11346002)(486006)(446003)(2616005)(476003)(54906003)(956004)(7416002)(2906002)(67846002)(44832011)(316002)(25786009)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB4685; H:[10.232.14.39]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-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rp1D9bFvEIzJiTk60i/4BhktpypWb+//NsPDUfd0NFOVhqFUU/9V67Rnel1FxwHGEBlZpYt/zth1dtonyhxR6eTc4kBP7qbZTKcByv5KZGXWgvTB+QAkMA2BYN4GzYoDIqaJTWbIKNi9+HlR3lqsk61NtQmdNY6cKUH9u4nk4v3MG3xXuuecokbFe2O07+B3B11PY9+sNndsqsazt8hg1+5scJJCiF4mpbstiiz/WNfFdylrqTrEh4vux9ulpeOo5np+i3Z6MqpQbOzw==; 5:6E32JotjJ8LSwGM6DCB/ynn6iiX+6yXxBIB0KAfGcOKG6reYjsh+E/EI321vSzJSthOLmGLGdUPq1YBzEPFYE2lSp9jhMVnq26tRnZRFyQEA5bhXDfJY4Q4vtz5rV70Ham/hlqeMMIaSUtf1G6Rpaw6JPRnzxV88onssRr3/LQ0=; 7:7IMLSeDfZlHOqSji8b8Gxi68EZPU1lNux2wIYrs3MMz7WBVGr0vpLWaX+o6Eb8xw6nUAGpeZOeC3VmGLaZ3zIGgT59SuPEMbru4eM+6QHzuzjQG6pSsqocakhJF9ifs0SmF3ND7eJ0yZS1DxrRsQEz5lq9p27BnsFyQB3jCYebfJAhpQJo+eBSn2PhH+OoqVfuYHXVkLC22IEX3bygP3kPGNVfi+IzI3goHdCV5jxvSz8cnHNPgjSSkEVAzMjS1F SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2018 11:04:06.5087 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e99d98bb-552e-420d-4b91-08d62468f51f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4685 Subject: Re: [dpdk-dev] [PATCH v6 02/21] mem: allow memseg lists to be marked as external 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:04:16 -0000 On Thursday 27 September 2018 04:10 PM, Anatoly Burakov wrote: > When we allocate and use DPDK memory, we need to be able to > differentiate between DPDK hugepage segments and segments that > were made part of DPDK but are externally allocated. Add such > a property to memseg lists. > > This breaks the ABI, so bump the EAL library ABI version and > document the change in release notes. This also breaks a few > internal assumptions about memory contiguousness, so adjust > malloc code in a few places. > > All current calls for memseg walk functions were adjusted to > ignore external segments where it made sense. > > Mempools is a special case, because we may be asked to allocate > a mempool on a specific socket, and we need to ignore all page > sizes on other heaps or other sockets. Previously, this > assumption of knowing all page sizes was not a problem, but it > will be now, so we have to match socket ID with page size when > calculating minimum page size for a mempool. > > Signed-off-by: Anatoly Burakov > Acked-by: Andrew Rybchenko > --- > Specifically for bus/fslmc perspective and generically for others: Acked-by: Shreyansh Jain