From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0073.outbound.protection.outlook.com [104.47.34.73]) by dpdk.org (Postfix) with ESMTP id D5C383777 for ; Fri, 20 Jan 2017 15:38:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=PTba6hUXzo+34dGbt8rul1eZT4hHqIOpJpKwDtElBg4=; b=BQkeXQ++KTadmBSoLVE03NbYIfxtD3ODiB84wfARaK3/3QarUrQJa7iH0Vr6w5ZDiAG8eYfc7dzwdVwHOUGhs2Gt742EgTINpebj/A8HiI8cAfAiSRxxYNzPnDx0ETFq3Bb2qvD/GC2Ili+mS8uachuZJAD8OCBiTYPhD8aa5cI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain (122.167.185.94) by BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Fri, 20 Jan 2017 14:38:24 +0000 Date: Fri, 20 Jan 2017 20:08:06 +0530 From: Jerin Jacob To: CC: , , , Message-ID: <20170120143805.GA5741@localhost.localdomain> References: <1484922017-26030-1-git-send-email-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1484922017-26030-1-git-send-email-santosh.shukla@caviumnetworks.com> User-Agent: Mutt/1.7.1 (2016-10-04) X-Originating-IP: [122.167.185.94] X-ClientProxiedBy: PN1PR01CA0097.INDPRD01.PROD.OUTLOOK.COM (10.174.144.13) To BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) X-MS-Office365-Filtering-Correlation-Id: f59d3fca-1e89-4832-156d-08d44141fe95 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN3PR0701MB1720; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 3:XPqDaJQJcotGCQOhFmSn2LjhrbzutnVAVEZupymhnVafGVN6jOaE3K/z50+k/a7m3ACu0wFGwXzIsBttGIqVr7xMBbUqpytqiWXX9d0ZFFW47Rz3H/rBebj8cjAn0LSqbKf9JFsciDGy1RVurklkChSbQkpjMFwX3N696XQuXSKV5vk4LEh+jNFrIOl3r8xO2UDHNKAdqAgZoX9VlKTK4bjxIFsPGlpHtCdBcUwItPx4Kelbc15Z7O6i4SWVPcP5geq/YIJjR2Rz401e52LzVQ==; 25:XOtvisAtGiGuU8k2uz3TUznF4haEZBHOWyhsMoC8Y3+dV3qsrykwZRZGCn4MYJhps7ySzcA4WgtgOdof49m1PSn/0F6pmUWuZOtDc2oTHoQAfvaLJRy94oyJraG5noXetCLThqzqZgiiZnnIU6Rc7ZkpOA0TPv3wQk0b+h2FLXy8KjtRChyvdQkRa94Q9f9vNYgh4rwrPUp+UF7Uy2XMjFqRmBWp+r0YZPeHgxm+GZgMAvY8s9axp5LdmMRE7yBf4MxHrZT7dtedTNg1JdXv+G9dQmykNiO/qARbzcJqPnzhxF/8e5h7rw2XzQg33Q9BBE5jtxEqKm/waaU6y6QatzmtW99CxbDuAEfqIZaZmkGYf9ZF0MBq3zytgFQAZxO2spkyy3559NbqCAQ9KC3Yg9YpgKaIA1d0zF9lYR6DKndoFaig1Q+OZ1J+bcoJnzXWkmZwRudnSANDmIPywClcaA== X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 31:F/zv9CtmHMu2dTcmWxB1PrHmbunKjnvvwGcutIUTU1lkt7W4iNpUY5OS1+DUksU/rYfnZm+bIhi8Nj3qZFIfWu32hRSKZtZ+lTTWekw1cKbyyTRhrO5h7m0YpZqCYZEY6dRcgNn8PWoWo4yyln/p9+91knABik+eRaNLr0LyDpkow4RWzHGaNau8iWVkBng2w3/ohGxoYDqEWy7ZRyOen7g3UpJtbo/VEYqCWeaBcV99YQW+4JpllrzMPaXLwlrQsPFbf9fWlBKUFs3OVU72nQ==; 20:rJWiqN5yl3SEo4o3C7jnozpUsGl5S8fw1CdzKt7MzLeKnR9CKVw5jgjAHLydppOxYlLrsnUL4r/C6pvPXzC6LIZA4R8MsWcGDLNMOWdEEvV4YPFtSfPSw24RueTw0GNBFjQHLXD2NhL9sqmexi+h56zANm1qRdb9FZG3Uq4tHDER2jaZ6Mr0m+tH81z20Nlvya5JF9LfCegwAjX5C+r8jQsD0TEhybJjHp0vNT7QjExmMBSZITQWASVtCqKW3HFQlvp+RDT9Mp/iaSVcJSX1jUpPZPHpSW3zQDZeNurGKRNjcSIagflVNRuiJXBL7khJBLOLcNYiF/Yh9+/8YvPP0bx8FhzE0c9nZ0Kk4lzYze4tWkX1GQU1r5nQD6xRrK9o4VYVcxECUbICDGbrgyqWpHR5/09e7C1EHJwuUqK0FyXCfglWcLAxle6X5cOgjOfeR4EnSk5dmQzEAPmdIxm/Lmy6fcaQXYFM2iNnVGGPkYOEiBjUZM+nqk3YmpWa/MYuxyWVS2bvOOVQSvkvVJUOLEsaQi6ItAugbe6sqIYrlfZlmbHvPC+5W2UX5MBIEzw++u6GIlPP+QjaOlo7BYdSSZiCpFsO/jRGvDMWaiyL/wQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(6072148); SRVR:BN3PR0701MB1720; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1720; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 4:d/TA0qjAtJATQlJf41iafCjR9sw1xigWMufhMCiDf0IeE5cAq1snx9oUr61SIuw8GN00LU+ebxGAVdeQySGivr+4CS+t6DazJ4hDLY6kDnRamQRZ9b6/zcySTmYQOVzUYnVRbIRWvimBdImZxDf0yQPHfHsBK+cvA2amjvy9u1TWWwAD+DSMXj/leNIlbazefRicSJUSYjCBt2P1KK5qdcdYoJgpUHr68rklL5scDLtfA5jCI7xRjqTfsG0p9KpNnO7IPNYorXtW0JPh/1sGMgf1N9seHbpV5ZesxgiMfYZKOItu/GXrouDPaVLUFTR0C+ialcUsnOH6HXE+U7xWhHu1wsamvXyseEt6BCP+btiKBHN+bgkvrgeRCPTnFSPSQY7s0b9XEmCaj6KxQfD+Dk7qFhgV7wqX43HDrrbmOo/WVPUktg0aLNcNgVGMUCaH5sCGxO8DpXPRZ4d9BSS2DKDVUx7jyvNJXxAcWZGjogkIuAb6ztrg+rOssQxUclUMzHSBpq9ku9RNQfx5RLoRhwvT9jzv9L7oT+V8oy1WakVshjiCCzm5tiYRlkjRFOrGq2Hderz1B5bOG70medHOKQ== X-Forefront-PRVS: 01930B2BA8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(39450400003)(199003)(189002)(24454002)(50986999)(229853002)(76176999)(33656002)(54356999)(97756001)(42186005)(2906002)(106356001)(25786008)(50466002)(2351001)(3846002)(4326007)(97736004)(105586002)(101416001)(6116002)(38730400001)(61506002)(54906002)(4001350100001)(23726003)(6506006)(1076002)(46406003)(55016002)(8656002)(66066001)(42882006)(189998001)(110136003)(6636002)(6862003)(2950100002)(9686003)(6666003)(47776003)(83506001)(53936002)(8676002)(7736002)(68736007)(305945005)(81156014)(92566002)(81166006)(5660300001)(7099028)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1720; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1720; 23:51+zWBN1+azmbS0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=; 5:bdgdVVO9USRoDM28FCXA4hwtAAiAWqepPtLduSGBp8hd4BSxPiESjHrMU/rXFjcsNtDxGU12ukBfnwH+moouQmjUUPIpu18eEFLsG1Io4gWIky4LyxQJfDRzP0mmoQ80XmrZnv6jq2HUQEOzV7e0YQ==; 24:h2mLjTGPErswIjiwKiG2IAUDccO9S4NlAkmv/JFwgBjqlKDpRmREW8y+zftx0BJvgdUxaBPtrNxiN3H+9fZbLG2o8dsTk5jzUIlqqLFuguo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 7:05cjvKeupfD8ScsENcIszW7LCQSvdWnmZVOW4bR5pEY0PBXiX0MDjywLFTvhW5X/USTDXyMBaoK80PZx7QxG4Z1LmKM0/PeJfGTJX9mFsl3Vdfd/1iIr579MunkYbreYnAIY4jcye2eLq3Z15Jv2ZVuk6w/gIZlseiX+T5ZJE3hOQ7t/TgmiP+I7tqsENU5JyWt5Ttu/PrlONr1WrUVZ2Rp7/f3QD51rxqapExbGmvrP/kPu+pAErIcFmPme/AeGQDA2FFvwh1ghrr+Sd4srjFBrfEVTQdZPhr1VUiMjHnXzkPnboccIYPa99O3/j3JERVRvAjljPezhf/LQoEXvnW4oGcA7/5rYIBWF2Rw43KOCMkzENvb7BRk7aQhopf5vwN+UFsR+g/Cz5YfBA8wSCtFYIZKGLMFKPlDWZnNaKnjK6wmgIIQEXK35xr4g5pwzUA/doLZZ7QXWP7B5zvp3yA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2017 14:38:24.0114 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1720 Subject: Re: [dpdk-dev] [PATCH] mempool: Introduce _populate_mz_range api 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: Fri, 20 Jan 2017 14:38:29 -0000 On Fri, Jan 20, 2017 at 07:50:17PM +0530, santosh.shukla@caviumnetworks.com wrote: > From: Santosh Shukla > > +/* > + * wrapper to populate mz's pa/va addr range and len info to external > + * mempool. HW mempool implementation to cache-in this inforamation > + * in their local data structure. > + * Note: api always get called before ops_alloc(). > + * */ > +void > +rte_mempool_ops_populate_mz_range(struct rte_mempool *mp, > + const struct rte_memzone *mz) > +{ > + struct rte_mempool_ops *ops; > + > + ops = rte_mempool_get_ops(mp->ops_index); > + return ops->populate_mz_range(mp, mz); Check for the NULL before calling the function pointer.