From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0056.outbound.protection.outlook.com [104.47.32.56]) by dpdk.org (Postfix) with ESMTP id 7FEEA201 for ; Thu, 20 Jul 2017 15:49:08 +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=UZC849Cmm8D3iOVVMbQOlHTNZdtVXKIsZBYawamkRkw=; b=X6bASh3fTKVV5aoXcZHyXvf6IiI5UULYQGaS7oomkx3pnWIl/Jn8gs0p+5TXBzitfeKXxlleJFF7OEKWkiRiUbqybu1FRoCfpGnWASXj8kY0pmPUNqsIP2v2wSz/erd9ZryPsYpIKijlCJOgd7vEhHm7vd5bIhLj69k2muZKj5U= 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 (14.140.2.178) 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.1261.13; Thu, 20 Jul 2017 13:49:04 +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, 20 Jul 2017 19:17:57 +0530 Message-Id: <20170720134759.4680-5-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170720134759.4680-1-santosh.shukla@caviumnetworks.com> References: <20170713093255.13986-1-santosh.shukla@caviumnetworks.com> <20170720134759.4680-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: MA1PR01CA0115.INDPRD01.PROD.OUTLOOK.COM (10.174.56.159) To CY4PR07MB3095.namprd07.prod.outlook.com (10.172.115.9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0567bc51-f718-4000-1043-08d4cf76172e 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:Cvf/w1oHcT8fXE90+Gj3sv4Piip08kW59tJ13mkpwT/NMg79YVdLKsBEg8hqFexevVuZhwuTzbMPx0MDm/CHgnSS8n+aQNaSKxoBqPBwvvlzciW60ahaE09LmI43yDAxHPa67xHmTFVx89ZSbt3XmY/d3ACIkmqjleJWzlNk97uLlyb525xB9gJSZwgfFpX9BxtVHipe7iyNtDt+4Ymu7i3KYQs7qbw1mObZE686Rvnnr1hk8jeDLQpEQCMXk8gleM6wow9Vd9DFkOajqscfkT7Shb4XCWNcRNTcF3jz6wKxgVwY2AP9voDLe0A5gvJjphxQtxeAWfhJwInYPxL4DKTPIxS8oxlSq8spDB/0Jv0UoJqciYNnlywDLqfr62uQxodUT8CHiMvcC3sYSNnTVPmOKb877ymK2QOMmgiUzIFBsTDNBNU0H5dqubxvF60sjRJ+uhFirm3JdyGRRWgIiJyHIcWxB7Pn7yo3G0FTrBqLi5+dTnPhpdOZhZ41ovUL+57Fjc0ycDWGbl++srHwS6Q7hABpcvfFNUT/LGlB0AXvrQJGB48xLlB645hzH8c6j7L/WRORrz2gn80MZAM542zzqdV4//zFQfqG/TlsGNvM+U1Hc6FJNpVuERULjVSXeD/uFeTw7otGzRrnaXOvaBJ6WF+tkgbplgfiIO9gLDIpJGZGbcZBk1djyvUUdGciwRgrMaJ2mdTcd3T6g5+PQzX3LTYqH1aWViq70097hGk= X-MS-TrafficTypeDi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3N4HnbowyQ6ZZvBnm72WN4H3cpLjgFjwkQJxhYNPVXz6+IWOEHOQXahkudaoZJ/ATupFV3r0JcL+VGb8Mxw1kY879dhjEvi3JmWIzqTx4Ah4CFU+q+yCEUHcz468OxzNybiTMkHDr3mthkNJQcdFKO0sqaL9GfnrK45m0vhuNgDcIS54PF+Pao6ZJKqXOsqv7E06Y= 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)(8121501046)(5005006)(2017060910075)(93006095)(10201501046)(100000703101)(100105400095)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123560025)(20161123558100)(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:TuiHKyCVhqH+t4EJqmH9aMc8TAZEaFgGB7046boow8?= =?us-ascii?Q?K92yzX/zlNzijp3ugAWo0WhB9ecEIyf254Di+ETdF3T9usqkIodyZJOO0vxQ?= =?us-ascii?Q?HsADy5mxAPYAHd4Yj3/n7r0EhGcSOvvEUjImPmvyODEY9F5VIBJ4P3qggUDa?= =?us-ascii?Q?xvQt87Qb1SX/A1BTq/jA7AJNIVy0oRUkhQ4+tKg7s1+n5fCvf+mpJZvIdBBc?= =?us-ascii?Q?9t5iRkOoI6iRZQqsOiLAZQzKCIiI+HVNgNSPMXfrs+x4gT91PPhA07bhdu6y?= =?us-ascii?Q?M/3HOo6ozKmBvB/QQtYg0Rw4dSO00SFGTPhx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PkETTa5f6NfPU6H6NwIT6M9qbAjEEmwSulmYAF6tzB0BL?= =?us-ascii?Q?oods+gDMgkQTgXVZceNjVPJAobSHbabWqb3/BO?= X-Forefront-PRVS: 0374433C81 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6069001)(6009001)(39400400002)(39450400003)(39850400002)(39840400002)(39410400002)(39860400002)(6116002)(42882006)(72206003)(305945005)(7736002)(48376002)(2950100002)(50466002)(6506006)(5003940100001)(6666003)(7350300001)(47776003)(575784001)(189998001)(478600001)(4326008)(110136004)(6486002)(5009440100003)(25786009)(66066001)(966005)(8656003)(107886003)(38730400002)(53376002)(6306002)(50986999)(76176999)(2906002)(6512007)(81166006)(8676002)(33646002)(1076002)(3846002)(50226002)(53936002)(42186005)(5660300001)(36756003)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3095; H:localhost.localdomain; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3095; 23:NO4hHAHv/xLPCYT5goXzbTls6qPuEPeseu08hJVYe?= =?us-ascii?Q?X/1Uq+OvLlBz5jTcOO1CBGdT9PP7hT6mro7klrbFQAYD7W61mrhsk98ohCFu?= =?us-ascii?Q?lTG9e9NnKnZBr0R/qq0imnR136Ml/l3xzg4cEGSoREmxp9IIIuWGvHpr5Fze?= =?us-ascii?Q?boqCDQNdt2fLYLrNcCEGyUqfP4eR+n1cNjZaaORD2qiCrBSHvWVV6mKS/YLg?= =?us-ascii?Q?MwCEpweB0Y7VoOmPNlDoOtD3XVxQ1/u5eaX7WIYoGf4SGgIpKoOZi/2W08+4?= =?us-ascii?Q?0lleDRs21Ned2tXiVT453vjcLrg08VCSqOKo2i2Ayc673OY+ZBIzcefTuxne?= =?us-ascii?Q?qz0uNE6Uaw3E7+p6DETz0QayvxQcyi851VePdtLET188bVPMgQeVzOLhBbYD?= =?us-ascii?Q?PvN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ZrZIYpIMYeS5Enj7Ca0G7GG/UTrU8/L6uyvxMR4Hqy7hUKLG5wf?= =?us-ascii?Q?MjXQLC6OBXac76kbNhZEMcKA34URbf3z/NUi0s6iBP8JkHTlrbGb74ucXmIT?= =?us-ascii?Q?FjBNyiEvufuzhsyDPRndzBiGCQkhH+6JoY3o5LkCG84PvzZylaU6oziC+1vG?= =?us-ascii?Q?u7usIRUDvuJNkIRmo2i7rZTEixyJA1wnEW9UyDeIxSKbwXkNBMOfWJNRs8VA?= =?us-ascii?Q?8=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3095; 5:hZUKmGyOXfT5RX8ZZBbH0EfCpYyQ15LLhuIUBddVU+yqIa1UTo5AtuVKZhT1TAneqtAxZ2hDLV+iO650L9XnF7P+YuyxkWeJY/Z1OV0cPzJr06km+XqzbIZVAuIb95w1uGDWt8AGCuAcY/FP6UeRnYUwb6oh5HMscsmxVxG1Cbhit/ZJ763lPiOr8n5fMR7Hh3NkpWNdKyn1hXgwdewzLsEJ3xwRRc3auRzQRzHkNNmAsp1kw/XCKP6zX+YyWOHnm3dHt5teCNNh7PfRZgJjvwYJzrvFZQh3qyxV0/B05FG3xO4NOihwBgsu9wzDH3jJXnePvgvKcRmMF5npTcYOQKSLjNyiCiZsCNffWscItwyJ8+XLyFpkweC0I+E0fffh7hvTQcakGrl0R+elZe+kVwW/p8WNRR5zVnCvECyy/QClCKwuhfq1qodVbN7nS1i4LIZscT0cEOT8V2b43jRduamur0d7EJDqiCurhJnbFRcW0+wS7Ivd5NhX+Yq/VMFR; 24:Jo+NcwrkbqK8686c+C/uUpQ4J4iiiOSEh964NUtP1kw9SlxELSpFn5nmjVY24g8OFtttUzpnDHK8EOQcAxSiTvSntzHRS08pPZRAOJMrE/A= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3095; 7:Xwr/AEfhK1AHS2HzpBec2RsX5bN3Czu4C6l9atXIPUsYzJFBtJlgeQ09OPO93xa7EvPJl/qj4UBvuvRb8bAE3TKDD+roMGVtX5T17YYnmp7/tdH9PFqCt2I+ukVrvG8oae/uE00+C0jgmMzf4S+NsK8DbEUMC1iVPq/j/kXU4Jp9MIbtig2wwn339tg2rhWnLrUdT1+yNpOUKKayznA2RUDRCheWHQhY7Ap7KN86XR4c0Udq9M4XK/bhhmj2Em9JQhJ/zizLsvK6OAiiPWrDeUyG1lidReQSyY1qgddtEdaYc+1kuAi9U2DPExQp+TQjykt5R3hD+IVRZWCsZfzZyT0KkI7r8v4w+JFfzRQPNwUHrAUBL4OWqb+g6QBiu6GE+cdHyHGNQzHvvWS0BRbJqrRRwCrOsl9VDpOmNwu+UIkH9eFUaRlTlruQlxq5G33HfjwZ6ep0GfAkY/o181YLL6Xvk1/PgMiX5/XI2pLPwLMAaCBeTkIJ+nR9aaD9SrO9XteVwDSBSkmH853QNsxPAc2DTQ++1iOPx7AZ9zUUfWSWEau8B7o13RgY7cozeNicRlO8A8kkmRAS4/srKxfx1HjQQzyJ4QCkuZYhxC7i+C+dt+1ZgGLq4iwomMg1BV8RZax1sGns8OGoKRvHErTVMMGZ/MnvJm/7BBwDRCYYrSb3r0lny3R5ZWDGLI+jbrXXpo6Na2vAIaQ5fO1KJPc7mzqcsIhlSgkDLPEN+SjXFsqoA6pyf55barSgCEU0P1bxpY4Vw4tXa3eeo6JU7o8pRutk2aQUTqD6PK/GI3cbu3U= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2017 13:49:04.1973 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3095 Subject: [dpdk-dev] [PATCH v3 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, 20 Jul 2017 13:49:09 -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 958654f2f..19e5e6ddf 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.11.0