From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0054.outbound.protection.outlook.com [104.47.41.54]) by dpdk.org (Postfix) with ESMTP id 9C49ADE5; Mon, 3 Apr 2017 11:00:15 +0200 (CEST) Received: from BN3PR03CA0095.namprd03.prod.outlook.com (10.174.66.13) by BLUPR03MB279.namprd03.prod.outlook.com (10.255.213.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Mon, 3 Apr 2017 09:00:13 +0000 Received: from BY2FFO11OLC001.protection.gbl (2a01:111:f400:7c0c::166) by BN3PR03CA0095.outlook.office365.com (2603:10b6:400:4::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10 via Frontend Transport; Mon, 3 Apr 2017 09:00:13 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; NXP1.onmicrosoft.com; dkim=none (message not signed) header.d=none;NXP1.onmicrosoft.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 BY2FFO11OLC001.mail.protection.outlook.com (10.1.15.185) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1005.5 via Frontend Transport; Mon, 3 Apr 2017 09:00:12 +0000 Received: from bf-netperf1.idc ([10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v33908Zg009566; Mon, 3 Apr 2017 02:00:09 -0700 From: Hemant Agrawal To: CC: , , , Date: Mon, 3 Apr 2017 14:30:01 +0530 Message-ID: <1491210002-9519-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490955469-16216-1-git-send-email-shreyansh.jain@nxp.com> References: <1490955469-16216-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131356836127679093; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(336005)(39850400002)(39400400002)(39410400002)(39450400003)(39860400002)(39840400002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(2906002)(50226002)(53936002)(2950100002)(8936002)(6916009)(8676002)(81166006)(76176999)(50986999)(4326008)(36756003)(110136004)(104016004)(38730400002)(5003940100001)(47776003)(85426001)(2351001)(106466001)(50466002)(105606002)(48376002)(5660300001)(77096006)(189998001)(8656002)(54906002)(305945005)(356003)(33646002)(86362001)(6666003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB279; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC001; 1:+NBLqaZHlCerbDJKJgQ3JjGc947emnlMpXRkw5YkUYlXHTU2WtkSflxaEEjm+lj/bDZ6sePvBCn1jMD1enzNs+yc2/9thPKwNSwFpxOUzhPfqoBou6Zvz2kfkWocHQSsZ0vH3vEkDKAC9EClN2C0Z/nscrGvI7GUVWSwj67eKC00AnGoQv83ujIg4tVTNZKQLw5vUogCFxBsdAQroQZNvT9q+acENflfKCama2TjwMU1ZGPa7W98KNUFLrIejkHvEhkz3F2qZCE2IuG7kc/ulyBOZj9+dP3AGK+reSX0JMoFAEoL+PM55/VbnllhB/5YzdKXFq7q4WxMw3zJLRNLXsA3Rj8zuCyrMAiCaOAUFBaQcb6bHZDPbT3dJaUHXYgVBJrvnNZbTlLNE53CyvIjp1ygNwdMTz30A2m8jP4SnesDVUCfFQWCzFuSZGUBo09Z9rq1NZ7ySoyT5PzdTI+xXQhPdN4WUDKUGgXs02uzFVTJUA7ttU+49HdzOwfqHQYvvicrP5PMBzK7yebds3r8AA9OtX+vPCWr+0xaaF4uIBxXb6Ux3QjUkOVy744zyy1dgvpd6Dpq0EUrgW4r9aMgEQxEg5NJwyOL2yaa0W0t1o6d/N8+1VHVdLzZEVkm5N/XTbQFAw4HI/T7jSSUf0wqKA== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 7f616b72-1a08-401d-3627-08d47a6fd697 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030255075)(201703131430075)(201703131517081); SRVR:BLUPR03MB279; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB279; 3:ekCIe6mSe3dlaPcTDCK8ZtNqB0eoM2carAExd3LV3+s74HOmJ1E6vHXpJGXWSFtz/84aCT2Re1Ta0dk9tX6hl2FMTpzFKwqrF7LmgQODwIonCrrLcN7XOTNI31MJhkyNFvjuUijUmNS4L4EENwznd2UWpFrBdn2u/+LzOtkjNLxGMLQAP+9406if0Fgxrqsiv9dy5TthX7SNV2UC+JRWbMtFurvIUmAC2HRYm3gBhUYI5KrB7WWWPhCWY2yoyoKDTNCtMja6azVKIZeqFO1OLjLUOxOEa6vm7PjK4Vw2ML9YUsHSbsQUQpQSsv5tHojKZAEgBvFxF6eSWPvUerBneFHUfwJWtkRrrUFXosZCrI17vNvrtyANLsEVr/5S3rFY7zrSw8uTxjKk0L+gbNFPX3R1LeXafH5F+anlln5brYD0TVoORrPop35XiSAZH3Lm8V8dXpX5zG/Q6qzxYP8YPg==; 25:z/VI2/d38Fz/mkknR/L5ND7a0Z3adb+UP4M78goMpKYCHJ9ghsQUd9ySPozgfWoBoDEztap9AYClpE9wJv07qB/ujqNnm11khnYqXpPr1X+4hvWutPiw14H7sOH4KqrDLAi+yHbWrb3icXPM5rnPZpWKqjmrR0jCKD6+p+fn9cywlAxNvu466+kgr9yEQhbDdyP8UlQmiSem9bID4wW5hLDx1YwbXlyTTe7hVkQz3r/i2X3I1Pw9ydpOR8/mVgwegjqsD789jIFTjyrm9/+RR6Slk8rjRp7S3soO7w7Ns/Bxf030W4e43QWJ9HhTJ6bYx4Dq7u6P//dOPoBp+UMySdPkfKsX6gxjV31Z3LiFJ/Y361I3nVrId8npIT7IS8jQlTkT0qsTqTWUzDudjHAUJd3yfAp3d5hVP1lKew6LfzPyrWONejJcNo2WbWHrQyphiSH/G9MZhLv5WQZK5UE+VQ== X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB279; 31:youYd1a6Xu51ita9mNzM2hT2dg5BLW9frlU5IbbxLus0HBATyMWPVwWZx6xInErhEX5eEyNnccjeV28IGKmNFfTYDFmMYUb3Ill2MwYlnl+MqPYCBogCz13czHjefs6z5/JknKvM7CGqGDFJnnn1tU8rhC/DGW0OjMABujAZrzNgg1uN3j6xzkUcm5Id10zpiSGVnjXULIwFn02m5d6MODcpsJ/fGhAdub+ectcPryvXu9w2RLdZGUrZBk01rkyfVpOthROHy5alA6uA4tZG25uPB6wgIH6sbxcbZALQvOM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(8121501046)(13015025)(13017025)(5005006)(13018025)(13024025)(13023025)(10201501046)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123556025)(20161123561025)(20161123563025)(20161123565025)(201703131430075)(201703131433075)(201703131448075)(201703161259075); SRVR:BLUPR03MB279; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR03MB279; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB279; 4:/e7VyhYHdUFsYLpFU6Xc1VUUOuhb4zD/r6UJ02YQU9xeqZA+SzX0jieCHEYMNByIZdvo7CfNXUGi6kds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1tPgEZ71rEppVniFQVOoTVr+S1alaPXKagV/9Ohv0L8o4ceFPmOZQJpZGvV466PqWZZj8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB279; 7:wP6GPHxyBytbPFuQq8Kbd3K3qOCB1olpykUW+2pCdApGqUmsFG3v475hgOI4uLGlhUOWa3Kn5hmT4XirRNnS1kqr+Q/u3++qMXFp4oWFIgVhc43/ECqhqVVk8Ln2EUfffhjLzjuXcnkYn2AyBAgn+pD2Ojon/HCV5GMDE8uGWY2eKnGL/QJ/5uKyWuLMqSMWZV8WNDU6T6tI8l/cQDkfXV3VCSNgZLhEqh0zVIuBxYivkoC6GeADb3qYSD2+RqUiooGMNJ/9wgW3wJPwBq3GQTf3pDixBUHkove/8tSUF6uWkk/2a4woHIRjrIfM4DtXD/pi6wifeBvhogEONpPC/w== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2017 09:00:12.4403 (UTC) 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: BLUPR03MB279 Subject: [dpdk-dev] [PATCH v2 1/2] test/test: free mempool on exit 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: Mon, 03 Apr 2017 09:00:16 -0000 From: Shreyansh Jain mempool autotest was not freeing the mempools. Fixes: 8ef772ae ("app/test: rework mempool tes") Cc: stable@dpdk.org Signed-off-by: Shreyansh Jain --- test/test/test_mempool.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/test/test/test_mempool.c b/test/test/test_mempool.c index b9880b3..d863885 100644 --- a/test/test/test_mempool.c +++ b/test/test/test_mempool.c @@ -500,15 +500,10 @@ static int test_mempool_single_consumer(void) return 0; } -static void -walk_cb(struct rte_mempool *mp, void *userdata __rte_unused) -{ - printf("\t%s\n", mp->name); -} - static int test_mempool(void) { + int ret = -1; struct rte_mempool *mp_cache = NULL; struct rte_mempool *mp_nocache = NULL; struct rte_mempool *mp_stack = NULL; @@ -567,9 +562,6 @@ static int test_mempool_single_consumer(void) goto err; } - printf("Walk into mempools:\n"); - rte_mempool_walk(walk_cb, NULL); - rte_mempool_list_dump(stdout); /* basic tests without cache */ @@ -607,13 +599,14 @@ static int test_mempool_single_consumer(void) rte_mempool_list_dump(stdout); - return 0; + ret = 0; err: rte_mempool_free(mp_nocache); rte_mempool_free(mp_cache); rte_mempool_free(mp_stack); - return -1; + + return ret; } REGISTER_TEST_COMMAND(mempool_autotest, test_mempool); -- 1.9.1