From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0075.outbound.protection.outlook.com [104.47.32.75]) by dpdk.org (Postfix) with ESMTP id 3C3C65A98 for ; Thu, 13 Jul 2017 11:34:07 +0200 (CEST) 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=8FXfhpscwTFO4RPZ/BnRdqB7FB3f2IBSdFD7giCuzHg=; b=GNQVlKdNsdxT+VZ857RB6oiStPqL8ogIrERbKyx0Cs4yPjC3FhK7n1LTEqEgOoum1tGQaCWWcfReekbK+2XgYxnwcO8V0AoJ7E+QSJfjZxYgDhmjaEhy2YWiejFZlL8D9y8trb58i5w+upehr9ce5JPTJDOMnJo1E3rnLhlIIrk= Authentication-Results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (111.93.218.67) by CY4PR07MB3095.namprd07.prod.outlook.com (10.172.115.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1240.13; Thu, 13 Jul 2017 09:34:03 +0000 From: Santosh Shukla To: thomas@monjalon.net, dev@dpdk.org, olivier.matz@6wind.com Cc: jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, Santosh Shukla Date: Thu, 13 Jul 2017 09:32:53 +0000 Message-Id: <20170713093255.13986-5-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170713093255.13986-1-santosh.shukla@caviumnetworks.com> References: <20170621173248.1313-1-santosh.shukla@caviumnetworks.com> <20170713093255.13986-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0016.INDPRD01.PROD.OUTLOOK.COM (10.174.214.154) To CY4PR07MB3095.namprd07.prod.outlook.com (10.172.115.9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9fc74088-eb65-4ecb-f091-08d4c9d24dfc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR07MB3095; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3095; 3:Wazr4fhAtwmUW1Rog2Ditgtove5liy6F6P7gHjjuZ24LxlqOHywJ66s5HNMzG1jZ5TPmcrZSkOLWPTRQbRGJNm4paev+v9xDnP1iMTi6DD6f74dfD5qjiLKC/PHb8Y5JK6/3HckVe+2mUvy521gSY+WW86V3XMNs1s1dPMfpFa85pv2VftytDXWHlgCj/IBZEHT/0O6CRTDOsZnmVgiJyUFKMNScJgroGyKDjoXxZPCBytRn2zsAjx4962qm0Jt375AxmMgbIvr/el9Aer7KoBhRCo0/L/58fInsDJlTZMnKwbz3r98wuI/ty9b+LacRs8PJrcZWO+KuprLVAtv1ZL+TtVLeCoYe8KWTKSXaOAjXsDi9UY1bvtfs/Xd/CbQlPUd4mP0/P2XjLUU52FrsfNn8eNDe51I9dXmdFl63zTkqUSzpG2+r9wuw3gwKZgF5ZPXheLLedpg5oGEF4try8V9/BiBzvn62FvWBHpzOW86bv1eaG45dmhrNSlJtu7LfrML3yI99dyT2JUlFCvMzFSpClD9syctvOQtsDYfHnXktf2RfLTqpnD8UgsG+LoUlBz/w9a90OLG7yof4As3rJ2J8fMnX/Pp+PfxdQknHgv9HH+dcbJjfdYcZDPmCRRxEvPQCk/5eCAh9lL25qE9IdllIE9y+CHeyxxQbPG71Rz3DGYhBpNSHPnKVBuNqGPYjCisM6G4f9vPAsN7Mpe0FTLVz87cDWEHstnTSLHDpXnM= X-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N7HAS8NJeHJf6Rt/nlKe4yI8yjsuRaiUjjzeYSRrWP9w/OUaT739LoVJZtcbr/OFoaOeNSnJNn6cpuQQJxR4mBEZIZnoI8EN8phz52YO+LKCRoFfCJd6nyWiHy/bgiMgMhZqqNrNfDNy1Q0sdFT234QdSvRxbWeuaOPIEOCzPDzoLRV9y/nvMK5IiGy/w3SLp/mLCQCEwsyB5fmM+oP6gSQA56qBqQtRp/KSdV87U76Niuyso23LQqeCeYH6Jc+4uco= X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(131327999870524)(148574349560750); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(2017060910075)(100000703101)(100105400095)(93006095)(10201501046)(3002001)(6041248)(20161123558100)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3095; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3095; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3095; 4:rmdVWvhvUndlThSHu3h19BB1PK33elSsyg3wE2mr5m?= =?us-ascii?Q?9uKj2ByWpzxPonR5m9tQUfK8cVEYxuT/yQ2lGeBmA4RYzzGXrDUbtYI9Xfsk?= =?us-ascii?Q?CvU+CRpxoavn0KnH1ogUSOk3Q0eDIxz91g/e0Kjd6E130NMeMEdJcY21pHbe?= =?us-ascii?Q?y1MRFlKBtgxQm1ySG6v0oK0K65BR5+4MP73TELHQC7Tw0ZR5MX0xTKil8Rxh?= =?us-ascii?Q?jSENcA29Jk3Lz4BXN9mOugfbO3xGao6fmtW+hgO0mplsT4KK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znj169Hw9yh6fPG4WmTGIMxeMzImADD0Nrsceule?= =?us-ascii?Q?Md1q/FAwSDGBgQr0LzhxIFm+8S/Lpjy5jP7TfMHv43IuZXpMbYtgfxPCCpJi?= =?us-ascii?Q?jaHf9TSfYYzQXPViO7ZD0xiowmNBMWmgjJvMiA?= X-Forefront-PRVS: 0367A50BB1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6069001)(6009001)(39840400002)(39400400002)(39410400002)(39450400003)(39850400002)(33646002)(305945005)(8656002)(47776003)(25786009)(4326008)(50466002)(8676002)(7350300001)(575784001)(48376002)(5009440100003)(50226002)(81166006)(110136004)(72206003)(5003940100001)(53936002)(76176999)(107886003)(7736002)(1076002)(6306002)(42186005)(6486002)(66066001)(6116002)(2906002)(36756003)(5660300001)(38730400002)(189998001)(42882006)(53376002)(6666003)(50986999)(478600001)(966005)(6506006)(6512007)(2950100002)(3846002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3095; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3095; 23:Cq+SqVaK6oXPbz0AEDEvOwowIv0/wKHaE2ZQ03TVi?= =?us-ascii?Q?Q3/NgRmK0jhpCv4TGfZfK5ZCGk5NveKg+L8amyUbuPbRO54k8QmZYaHadTHG?= =?us-ascii?Q?l0nqN2XXgSH201cpj+mALLt5NphhNVikWu74UfxSsOyPpA+83Zi6DSxC3bWu?= =?us-ascii?Q?NPEgdRAfjg+1UgCQHJx6DE/TnNjthZbSnPXBo0GJ1BlYN91dLa2HPF/rlGf/?= =?us-ascii?Q?giZ9SmrtUU4HIhGzJpHw+TQN8aCHGbLCZ44n+NVa5xr1G0PpvMYeRPpLI6rH?= =?us-ascii?Q?KEdHJFHTTvkmO4drQckxA0XQAiw7wKs06tV5658d5SenF6+cYb/SVucj0eee?= =?us-ascii?Q?78Ge3Lz4wO/nsx3ZI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?= =?us-ascii?Q?xSUyUc1cIHHLPJz9oFyq6g8Mr8iwQuvqBKQ9ECR?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3095; 6:l26OuaylfSA3fpDEBHI7DACT1QEUOsX5G3E6kEKJlq?= =?us-ascii?Q?jz6or/Mih8gqmpxRAVKYgkCvW0oKdFW8BfJEDZrMMjQan81fDHUAO6KX3hYF?= =?us-ascii?Q?dglRCogJUN8VVae/8JrESzNmn8ZBmAh7ayBoyc0gf5XOtq+QaBCTCY9NSKCv?= =?us-ascii?Q?7hZFgvf9XvDJLGKtVvKRewGkpiPjybwib7DNWlhUhidIjnosBhH+I43ioEIg?= =?us-ascii?Q?pnW5zh7lmNlJusP4pJ5rLvSaxVLbD8OJVbjKCi+ADyY0jPaDIrLtcECZRz6r?= =?us-ascii?Q?I3cnUnmHsUeKisH7sKRyf7nARe0s1feYlnSahKlVfoh8f47h9Z5GkiuIa+tS?= =?us-ascii?Q?UK/PGE/c7t4w/z6ygZRAWH4n6Uq4qTcCpx7AvqtTFVplb5kD+Z4FcgvJtl44?= =?us-ascii?Q?2IVEkg3JpbsIT2O8RqVpV4ptxKMpbR1XB5W0Pn6dOYvBBXViehLHd0IXLwle?= =?us-ascii?Q?lYOIlI4DpTj2xHoqykR4uROPGaGPtdqppT2TXB7Vp6x8NUyTI9yaawK6oDBw?= =?us-ascii?Q?Rlfh3SuSmFMxi62DGKqxk4vGMMy9VdoHMeSk48U180SHM9zQketJTPHa4DBV?= =?us-ascii?Q?GJOvUvoIbW848SYmQFtt1TDkSKmde7hYdg3Nh4xWitxFbhwRCWUExafCrYL9?= =?us-ascii?Q?vtXy1cD5OPGhKpdv0LXFLL1MTWkMc8asgR1lOhJhOpIDlKGcZ58aer/xot4h?= =?us-ascii?Q?X68iHogP69QFesbX/1c1gdYhvSkpkHmDviHNHBRAcoECu5h0/ulffx6An4HH?= =?us-ascii?Q?Np8ku7FRrobvj2h/eD43jf5JdGHuM1oce0995V2E494c+qEXunSQGaXDXnGw?= =?us-ascii?Q?dJfZ0keASM/cwu+NW4xeoW38EJeMZ9mWQ74kLoOrPsP0nEQFoYNJ0m7Bp+fO?= =?us-ascii?Q?cs+tX1O+5o/8eoXliO3XERFlCg8yq+yuwJbAk1Ss2L//9hbUIDud7uaOeBvv?= =?us-ascii?Q?ZXA/ucbVbulLgp/DHuxG+YYoj4FW+dcyyfgzcdpdPmcjWYY0Ga7ZGDbzBMgT?= =?us-ascii?Q?s=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3095; 5:07bi4QNxD5Qq6WtUjqAGQjldwtxllhvrkVMyIpzTJV1lYJLYFPVqUQqs9nNPKPerx7gdlssZ1Erjtr5YV8yXtw5pfqG0NoJnO11UXrvXET5eS4klbchkpkl7Q+ZxVDUEiIGcejz7yw8xB1wGnVQzin/Ug5hEKK9exDcM635weVtVwKny7PT3nnz1xzOIJ7eklLmxFZDPK8ARx4LrfdclhJTiFz5eUa47EGLo1JVdfH+ElvqbjvLCVNO3RDWrOoKnD7gta0/jHidq22gDJRhTYh4QQ6Snd7lNij1P+XebKhKPZPhpyZ3h5nRVl5I1DZRkDoBpmghzovTypAAhKK16KKFzhzPCurZ8FLrn8rjDUKyZ04PrFC4XGRsC/tI7NAMaFer5/6qMtcHgCgtOOx4BxKRGjEseM51v1VhkMfkPijBXKtVdhmDNNQ81CRDV6HobyQYVF5ife8lqT2gn+q4MZjOkLxrqFyjjiHJmjUi13lXccr7iPXq88gT05qOlLf0O; 24:V/m3N0bfGf/FFn4vWWBdIQxdwIiSAzTbN1qumhCfPGqCgdMOIg+F/I8NCas9af6gssHpKKrQ7CV3EfRer0zBR+OlLcq9rNcqAtF1Rt/HcC8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3095; 7:XVezREYKgfja75A0kFEgAl51V3tPndzoUDcWS/rOQ+X1E6Xp28z68pk76emJpBn1fgSBCQYvaHwZg95ijDAwr3Ru69FpiazlIHkiwWd5vrwHF0luXOxR31M3OgHizJill/GbEFYbBrKgaVkMLDPOpusKqevPGLp7GRtH0w5Rb4ay4fVPlXci1DfAkYdf5obxMj/mc4vYi+zo1UMm9LNqDFJYX7AVv7BVzODjRXDNKuAXqk6Ng8G+zOZGCOA0YvpQKGcPsSubwDqfS7VvY+hE28lEUHDfd0cGmH0fhduwe3itXyhVeHZkbT8FRyeAMnKsLfDEWjqFTvaE1g/ol3ZeBrjk0DxE4LLJTViHncwxwlLdZttOmepmEK+njRABo6jcRNkMYIJD5HjJpIKXRtl1EnT8kX9Dbo6ee6HhwEHID19nOmgYTEnfRSTp7iS8O8UWwKqQhzlsIn4JhMz9Q7D9cL0W3yEGmrXchKMCWJE0rE7CEZ29OgGgKCKPf6ykE5/GQS/naPB1trlUTpyOi8ZOAnhEDWggCFRDi6k/hpo7lNPgoA7y2mtPPYK9uOjd4EXlGmwnwHf8KDmq1DaD5Ba7thtMg+734iKBACaDFmKPUTSzc9VffldWUZuJXUynr/6rP0MIj4rJZW4LrXOA93QowRmW/7Joyfw/ZkJh1iW2ltzTjJff9/kWHkk+zeYyGPMzEWUPDbn+ZBN5Br/LNEmZ4DpwzDAXrrH+NJtuxkURGgQb7P39qaSYnIlMyFcqIwV1WYkZ5RIQa29EmBLkEYPEWIHCEJDKWZTmFZL8n2FHaFQ= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2017 09:34:03.3101 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3095 Subject: [dpdk-dev] [PATCH v2 4/6] mempool: add mempool arg in xmem size and usage 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, 13 Jul 2017 09:34:08 -0000 xmem_size and xmem_usage need to know the status of mp->flag. Following patch will make use of that. Signed-off-by: Santosh Shukla --- v1 -- v2: - added new mempool param in xmem_size/usage, Per deprecation notice [1] and discussion based on thread [2] [1] http://dpdk.org/dev/patchwork/patch/26872/ [2] http://dpdk.org/dev/patchwork/patch/25605/ drivers/net/xenvirt/rte_mempool_gntalloc.c | 5 +++-- lib/librte_mempool/rte_mempool.c | 10 ++++++---- lib/librte_mempool/rte_mempool.h | 8 ++++++-- test/test/test_mempool.c | 4 ++-- 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/drivers/net/xenvirt/rte_mempool_gntalloc.c b/drivers/net/xenvirt/rte_mempool_gntalloc.c index 73e82f808..ee0bda459 100644 --- a/drivers/net/xenvirt/rte_mempool_gntalloc.c +++ b/drivers/net/xenvirt/rte_mempool_gntalloc.c @@ -114,7 +114,7 @@ _create_mempool(const char *name, unsigned elt_num, unsigned elt_size, pg_shift = rte_bsf32(pg_sz); rte_mempool_calc_obj_size(elt_size, flags, &objsz); - sz = rte_mempool_xmem_size(elt_num, objsz.total_size, pg_shift); + sz = rte_mempool_xmem_size(elt_num, objsz.total_size, pg_shift, NULL); pg_num = sz >> pg_shift; pa_arr = calloc(pg_num, sizeof(pa_arr[0])); @@ -162,7 +162,8 @@ _create_mempool(const char *name, unsigned elt_num, unsigned elt_size, * Check that allocated size is big enough to hold elt_num * objects and a calcualte how many bytes are actually required. */ - usz = rte_mempool_xmem_usage(va, elt_num, objsz.total_size, pa_arr, pg_num, pg_shift); + usz = rte_mempool_xmem_usage(va, elt_num, objsz.total_size, pa_arr, + pg_num, pg_shift, NULL); if (usz < 0) { mp = NULL; i = pg_num; diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c index 65a98c046..a6975aeda 100644 --- a/lib/librte_mempool/rte_mempool.c +++ b/lib/librte_mempool/rte_mempool.c @@ -238,7 +238,8 @@ rte_mempool_calc_obj_size(uint32_t elt_size, uint32_t flags, * Calculate maximum amount of memory required to store given number of objects. */ size_t -rte_mempool_xmem_size(uint32_t elt_num, size_t total_elt_sz, uint32_t pg_shift) +rte_mempool_xmem_size(uint32_t elt_num, size_t total_elt_sz, uint32_t pg_shift, + __rte_unused const struct rte_mempool *mp) { size_t obj_per_page, pg_num, pg_sz; @@ -264,13 +265,14 @@ rte_mempool_xmem_size(uint32_t elt_num, size_t total_elt_sz, uint32_t pg_shift) ssize_t rte_mempool_xmem_usage(__rte_unused void *vaddr, uint32_t elt_num, size_t total_elt_sz, const phys_addr_t paddr[], uint32_t pg_num, - uint32_t pg_shift) + uint32_t pg_shift, __rte_unused const struct rte_mempool *mp) { uint32_t elt_cnt = 0; phys_addr_t start, end; uint32_t paddr_idx; size_t pg_sz = (size_t)1 << pg_shift; + /* if paddr is NULL, assume contiguous memory */ if (paddr == NULL) { start = 0; @@ -556,7 +558,7 @@ rte_mempool_populate_default(struct rte_mempool *mp) total_elt_sz = mp->header_size + mp->elt_size + mp->trailer_size; for (mz_id = 0, n = mp->size; n > 0; mz_id++, n -= ret) { - size = rte_mempool_xmem_size(n, total_elt_sz, pg_shift); + size = rte_mempool_xmem_size(n, total_elt_sz, pg_shift, mp); ret = snprintf(mz_name, sizeof(mz_name), RTE_MEMPOOL_MZ_FORMAT "_%d", mp->name, mz_id); @@ -613,7 +615,7 @@ get_anon_size(const struct rte_mempool *mp) pg_sz = getpagesize(); pg_shift = rte_bsf32(pg_sz); total_elt_sz = mp->header_size + mp->elt_size + mp->trailer_size; - size = rte_mempool_xmem_size(mp->size, total_elt_sz, pg_shift); + size = rte_mempool_xmem_size(mp->size, total_elt_sz, pg_shift, mp); return size; } diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h index ca5634eaf..a4bfdb56e 100644 --- a/lib/librte_mempool/rte_mempool.h +++ b/lib/librte_mempool/rte_mempool.h @@ -1497,11 +1497,13 @@ uint32_t rte_mempool_calc_obj_size(uint32_t elt_size, uint32_t flags, * by rte_mempool_calc_obj_size(). * @param pg_shift * LOG2 of the physical pages size. If set to 0, ignore page boundaries. + * @param mp + * A pointer to the mempool structure. * @return * Required memory size aligned at page boundary. */ size_t rte_mempool_xmem_size(uint32_t elt_num, size_t total_elt_sz, - uint32_t pg_shift); + uint32_t pg_shift, const struct rte_mempool *mp); /** * Get the size of memory required to store mempool elements. @@ -1524,6 +1526,8 @@ size_t rte_mempool_xmem_size(uint32_t elt_num, size_t total_elt_sz, * Number of elements in the paddr array. * @param pg_shift * LOG2 of the physical pages size. + * @param mp + * A pointer to the mempool structure. * @return * On success, the number of bytes needed to store given number of * objects, aligned to the given page size. If the provided memory @@ -1532,7 +1536,7 @@ size_t rte_mempool_xmem_size(uint32_t elt_num, size_t total_elt_sz, */ ssize_t rte_mempool_xmem_usage(void *vaddr, uint32_t elt_num, size_t total_elt_sz, const phys_addr_t paddr[], uint32_t pg_num, - uint32_t pg_shift); + uint32_t pg_shift, const struct rte_mempool *mp); /** * Walk list of all memory pools diff --git a/test/test/test_mempool.c b/test/test/test_mempool.c index 47dc3ac5f..1eb81081c 100644 --- a/test/test/test_mempool.c +++ b/test/test/test_mempool.c @@ -485,10 +485,10 @@ test_mempool_xmem_misc(void) elt_num = MAX_KEEP; total_size = rte_mempool_calc_obj_size(MEMPOOL_ELT_SIZE, 0, NULL); - sz = rte_mempool_xmem_size(elt_num, total_size, MEMPOOL_PG_SHIFT_MAX); + sz = rte_mempool_xmem_size(elt_num, total_size, MEMPOOL_PG_SHIFT_MAX, NULL); usz = rte_mempool_xmem_usage(NULL, elt_num, total_size, 0, 1, - MEMPOOL_PG_SHIFT_MAX); + MEMPOOL_PG_SHIFT_MAX, NULL); if (sz != (size_t)usz) { printf("failure @ %s: rte_mempool_xmem_usage(%u, %u) " -- 2.13.0