From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0042.outbound.protection.outlook.com [104.47.37.42]) by dpdk.org (Postfix) with ESMTP id 69F5D1B1BD for ; Wed, 20 Dec 2017 13:00:04 +0100 (CET) Received: from BN6PR03CA0054.namprd03.prod.outlook.com (10.173.137.16) by BN6PR03MB2689.namprd03.prod.outlook.com (10.173.144.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.14; Wed, 20 Dec 2017 12:00:03 +0000 Received: from BL2FFO11FD006.protection.gbl (2a01:111:f400:7c09::184) by BN6PR03CA0054.outlook.office365.com (2603:10b6:404:4c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.345.14 via Frontend Transport; Wed, 20 Dec 2017 12:00:03 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD006.mail.protection.outlook.com (10.173.161.2) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.302.6 via Frontend Transport; Wed, 20 Dec 2017 11:59:49 +0000 Received: from [10.232.133.65] ([10.232.133.65]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vBKC00PP024846; Wed, 20 Dec 2017 05:00:01 -0700 To: Olivier MATZ References: <1512563473-19969-1-git-send-email-hemant.agrawal@nxp.com> <20171219102456.ghipiyb2ig43d4nk@glumotte.dev.6wind.com> <830d3e36-921b-ef7a-51a4-6d135b15e973@nxp.com> <20171219110204.uqxw4xy66o65pnjz@glumotte.dev.6wind.com> <9adf0fc2-b233-26c6-b866-236d6277a4ed@nxp.com> CC: From: Hemant Agrawal Message-ID: <42572f99-99bd-ee70-e631-b817d1d679ac@nxp.com> Date: Wed, 20 Dec 2017 17:29:59 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <9adf0fc2-b233-26c6-b866-236d6277a4ed@nxp.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131582447898454077; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(336005)(376002)(39380400002)(396003)(346002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(24454002)(68736007)(8936002)(86362001)(76176011)(230700001)(81166006)(8676002)(81156014)(36756003)(356003)(305945005)(31696002)(67846002)(83506002)(23746002)(31686004)(47776003)(65806001)(105606002)(106466001)(77096006)(229853002)(64126003)(65956001)(2950100002)(6916009)(85426001)(6246003)(53546011)(4326008)(65826007)(5660300001)(50466002)(104016004)(53936002)(58126008)(2906002)(97736004)(93886005)(498600001)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2689; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD006; 1:R71XK3P0ds8ZrugioYYp5Y008nMyxFPUvYd92/IFL9ISKb//WRSeuZNsELp98i95DK710p3+KNJmZrHi1UYLwJcpgTC85DbGaOzTVv4RaBZCSIMRtZc5tq2Xx7VHkr+y X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3940e7df-4a2d-4a0d-e83d-08d547a12c20 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4628075)(201703131517081)(2017052603307); SRVR:BN6PR03MB2689; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2689; 3:Nwy37fkuhyhTKHJk4MY+f42L7W2tS0KUxPe9WRRcUPA5rPck1CirQIVGkalgUFx0d+Gkcp91xrUzRN/I9JdoOfuvWwNb7POFswBXEZEs3Ws8wrtz11vcWR9nxJE8v2264ErnG2jASD9BNUi30gOR3npSpRawIUkVE4SbSJa9rFWBG3IZMUSM4Nsf//F9cNlswHEElDeOw7Y8ec3iPJCEnUHTcEi3lGGvnKDtxbKBMQEQ76bmbodfGwOO89sKpsMdkUjHc/MAuEQQkAKxwZJqIdoA2Ckcn75Aeafds2N0HM6yODaruxr9Jlk3igRQ9rumb79z4G7yEc7ir2caF4PxVwqAmy5s3AHdsLDYpMr0Les=; 25:BgLI17YZxyDKyg4nmHgGOdA/jHzhsR0N+xwylBN3ecr4V+Myk27OQuDgLeAQjML8n4g0fAORcsipkX7xAFWF0hWgRi+DfUYfj8h29/U31fDioUd6V3Y+R7T1Z5qOAxgdnXq3zSqNVz5PCoWlac/HFJSGtl3pg2ixkaBDJK5EpsLRnKZe+ZJZPVahzqS49vXkEPDEAzuMaWIzWD6t01CTUMwzOX44/CmpoE0HG6s6Xvo//yHPEI5osDGiVQLTh76fLq3msBZ386xSVOH2QfaMaGVOlMsVBSqKVES1W/0MDKNmGchR88SHzxvT//+CYU7qaOzPdrTkBUoHmpO9FflTxg== X-MS-TrafficTypeDiagnostic: BN6PR03MB2689: X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2689; 31:si/CkDiIuA1Kpr+T+bIxXsFwR5SC6dH7mK+aColfh3SlDy43otXgAKRvUaxCHTm6ANcFSB9wvx6afParwX+0bGCxdo7+ksAM4lHjg64xhdhvlKhJbDPD+PrCnVTYo/40RKuCpvP+bEG9h0Cam1a8NHXq+cA3RoEHSWjyjIZjZgQ/MfZwwpu1vYVa6Me3CJFk125nBQvtbZbZcbdKcSzhGeXf01tUMElIT25QmppgJZE=; 4:aFnvPM19gND+xw4AGFLGQwfjjMuHmPHnVWHfCz1i88scX3XlJyCbs65QviKU4rwAqhw0QY5S3yOLEzpsLl3kC80LuQDQDIu39TaQ0xXQkdK4NkIcFDmRCY0Az6qA8D5wzcEuyfvdxQ1imN6qmO5M8rWj9tR7lCg/DGGjrx+QbKuvS2wbU1SJUaBxuyxqlILjZ4gWQ37j76Wk/nXfmd3hSg4Wcndk3rRON8sXLFqssmSLWnRLt2waVa5I5lNwvAAX1YtEvedaUMSlWpzp3qs8kh8sEvmpaf/nFAdaHtHlEG1HyKXuI7S8PorfUClRRqKD X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(131327999870524); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(3231023)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(20161123559100)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123556025)(20161123563025)(20161123565025)(20161123561025)(201708071742011); SRVR:BN6PR03MB2689; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN6PR03MB2689; X-Forefront-PRVS: 0527DFA348 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BN6PR03MB2689; 23:Bzda9filg4K3z7ex1Wsxl/vZm+c7iNz3o50x3?= =?Windows-1252?Q?eNumqM1w6FDOGc0mKbrhSaJoJ+HkiQVZ9ewqlnCOmC+PBNJVOoZ288b8?= =?Windows-1252?Q?MwzqTjggxUqy4yWhQ6tb4/LmyXXj4D5WaUIy90KJtfrS0RR1n33QWsS/?= =?Windows-1252?Q?y+JWjRnDLQcv+QfpGiVFznA3ktClvKj9IN4OXLGLIzHYa6t4U+N+UeWu?= =?Windows-1252?Q?4JE90L1OnMG0LOwRMjnTYjH/V9mB99YMfOIj1n67+ieRLahgarl9qDwH?= =?Windows-1252?Q?pp1anHTWDEqVN1J8DigeDo5o/V+ie2JTMqZIFs0g2KbIXagdPzszrdNC?= =?Windows-1252?Q?sj/jFbQHjT+AKGRaNt+l12tJ0K1pwmMww18ZejNe2/ewF57rbpLSbaFb?= =?Windows-1252?Q?eut6LM7XOqFO1SGrj3/RrJ+Zuvqzn2K3YjTfbEOjQgVpb1y9nl5VHjdv?= =?Windows-1252?Q?ELGCKRs9Xd3VE3Yyd5EbmB9I17r8YNEFxP7SzcZrDa4wo4GbUlN2rwwK?= =?Windows-1252?Q?Xv446/dMDZP3b2H20Hqr72aAq+pq+R89XT9LFDOWJf6Esyb7oubeDDLL?= =?Windows-1252?Q?W3E9tjwmdy7vNi5ayTL7cQZd03gR60ZWyUIr03XwNhhYkAmAdnuF3yNW?= =?Windows-1252?Q?OLqraSPI1cHO9NlcNMhvicM3bmMDo93MLA52MUenzmji9fSgajSOajOe?= =?Windows-1252?Q?VKNyVvmxKSG6OMaqhW/5PUo/5iv+Wj4ZaFnCj9tPu9VT1Yu5mTImcQJS?= =?Windows-1252?Q?9ERWdKNi4uxT+UGxNu8Wbf+QRxwYpvVeD6gGh9Ak45gXl76uUNz7evGh?= =?Windows-1252?Q?fflvk9kCYXyOoZGLg8nCQE/BaznFccO5jc42kaLZPkKihmRWc9M28yG4?= =?Windows-1252?Q?APeXQ4mXF9SLKWQ0jw7LNHBYgrxPtHnECTmXucfFpTAFieG3MFBxnE3c?= =?Windows-1252?Q?+//K62F9sV/gnpiOF0KbRStxO3iqk0IlIRCKm76FzTRQlI7T6uJBZhGa?= =?Windows-1252?Q?uMDeG1ar+6Bsjcwdfj/3FuuwO+iCNzR6R84hi2PDpibSGkTup9UyhfOe?= =?Windows-1252?Q?exdC+fiChLn2wmaG67cSyqT8Hyf/QX3plNaIH1JxutDmFlTkXWVyXmBE?= =?Windows-1252?Q?Qv3o3oZbWhnaHKoEZVqCIAMH2LhivUCnMZIZTj4RjiI6Em32nmntVRZW?= =?Windows-1252?Q?709+JtOC6uvPTebU4nSDO4YQNwryjAZ4D4v0dAuO/rQvbu1RqcS+S6ug?= =?Windows-1252?Q?j6tmuyny3KXLDri47Tk5epZsYajM7guD4/840tkfBLEAg5V++Vvl4VMl?= =?Windows-1252?Q?gymsaFaB/X8/K3SF3A7UiKg8gEGKmjPMPxBCHx0x1YR6gUMDxNsK5oEf?= =?Windows-1252?Q?YuuLhaVwtwJ?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2689; 6:3u/JwCFrkLbRxX6DtCpj3KLJfMfWKkqM7CymLt1IvDotvI2wXaN0086iJj1gK9Q3SUHh0+xQVxYvi2W4tCCafJ+wJPt7JlUf9doDyVhbC6Et5v1CqAIAC2vA4jIKXue9l5r66xAwvl354+axvCY3aCsWwwL8te4uRcsW3LhUgZnseXvbgeyk2sdOKPZkLpxERzzjM0PQshzocm9Jq8ggCPBC4MXeP0yB7tQR6zKePYh0Vurp52JT+vPGPZ0nSlteRmWSAikBAwZxt26oQRVGHN8327kpaDyjeBs5ldSLYyeM+YA0L9bgjtna6o4xl/jNpRDcr9CPhrl0CDRZCWA5ZFBR5/qsjMhNuADpsQ4NtdM=; 5:piYEWdkT8qQRmsibVADljaZXcrpBuJqUa03+Q+H6sxUbFOC3GYPCKK3aQ2Dw3KOivVnrKoLTl818IyuQEQ7ia1y2B/AdtKKqEKgAyf0rAmIJdltb+2tVZ852g8bD43lNi5DyeJO+li+juPnslyLMj04li9jnF4/cvPKwACp7HJg=; 24:hIlcaV0LGWNArQjymVSakQxx2ZhwTq0swa08TJ6NsVykHrwPZCPx+UecqPa9CIXRIm68/NtF1xU/xDvpOm6axUCogYKbMXDczYps2vyODw0=; 7:8dWYrdXkDltKqaY/vnboVAnlnALLyxDMi0cQZgJ+4/84E/kdsyQBJCSHXpLkM+C21aeqd24KYgeizgZX1w8HO+Ex9VWVHOu/kC6u1L/Bzr3aav3d+nECLvHnWxSck5k/eBXKZy8YxqY/MjJm8NxCJZwRjyLMHSKfQsz953xVmHZLdZncLCmo5cvzwXIHkZAmxtfkRj3p8r0TRBFOno9Dik89BnZ99ehBN5dFdvjGtpYgkFczGHsm9Zas+1u8RWfo SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2017 11:59:49.6894 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3940e7df-4a2d-4a0d-e83d-08d547a12c20 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2689 Subject: Re: [dpdk-dev] [PATCH 1/2] mempool: indicate the usages of multi 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: Wed, 20 Dec 2017 12:00:05 -0000 On 12/19/2017 6:38 PM, Hemant Agrawal wrote: > >> That's true, I commented too fast :) >> And what about using mp->nb_mem_chunks instead? Would it do the job >> in your use-case? > > It should work. Let me check it out. There is a slight problem with nb_mem_chunks. It is getting incremented in the end of "rte_mempool_populate_phys", while the elements are getting populated before it in the call of mempool_add_elem. I can use nb_mem_chunks are '0' check. However it can break in future if mempool_populate_phys changes. > > Thanks > Regards, > Hemant >