From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0059.outbound.protection.outlook.com [104.47.38.59]) by dpdk.org (Postfix) with ESMTP id 0EA62326C for ; Tue, 4 Apr 2017 17:28:52 +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=KB6KUQsvj1bqhwzUTiL5P8TsaQoZflezRrwu1yAEoOk=; b=Fy8fxQk1lR2U+xfvhSlRMxpkkNca/G3+bjoX0Fa3tcZiwwuWVJOgqxfvyqDowZBCf9WhsnMTXE2TVJNMF2zGYVDP0IyVdO/+yNWH8Ea9Bz0EB/CJ15FgzwpEZvv0icRGmb+XnNOvA2Oodn6j+PkY+jtVxvwW9SCNppLpIt45j6w= Authentication-Results: nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from [10.160.0.41] (111.93.218.67) by BY1PR0701MB1723.namprd07.prod.outlook.com (10.162.111.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Tue, 4 Apr 2017 15:28:48 +0000 To: Hemant Agrawal , olivier.matz@6wind.com References: <1491210002-9519-1-git-send-email-hemant.agrawal@nxp.com> <1491285429-1114-1-git-send-email-hemant.agrawal@nxp.com> Cc: dev@dpdk.org, shreyansh.jain@nxp.com From: santosh Message-ID: <7c94f0ff-e73c-17c0-eba4-3f12b537a07e@caviumnetworks.com> Date: Tue, 4 Apr 2017 20:58:35 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <1491285429-1114-1-git-send-email-hemant.agrawal@nxp.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MAXPR01CA0067.INDPRD01.PROD.OUTLOOK.COM (10.164.146.167) To BY1PR0701MB1723.namprd07.prod.outlook.com (10.162.111.142) X-MS-Office365-Filtering-Correlation-Id: 8d61074b-8fe5-4cee-3a04-08d47b6f4b9f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BY1PR0701MB1723; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 3:Nh4yyecCaQTazG3S2bAOhqipM2wXvXHpUtRABjWxEqyBFbwfcLAg1nXGj825TrVS3IwuUKiAJ7At2yQe8LtG7kmVGQZ+nudDjl5yF6DsriCBbk5LvU8iVWQaTbp6r3EUZY/OLXdCni53vtQJGsF9HjeyZAe9+R0NSm8c7Sj/3mvagaNrzhLSbMuoKqmivA3cakYx3ltf7Oc5s9ZMcFGOgBOsTFFegSJhny7jb1vIlJUfwRaXYilV7pAziZrltTMIKqHxVhKoIAjv5whgFe+hMGG0mb9OfYm+/QXvkXifb0XnLvqJHT1syBAFTkOFK80jYf2cKtn8K62/6VuJJSAzGw==; 25:7yCNPGIlgTjuwxM89YihoG2m7Cd5FHL/AAA5/yFYJ+OhFetXpBfrelROnzCj/705uzNRRhmHS2jDeuS0hsgiK/s2lTCXuZoGLQsTXJbWrcnCkhOYHP/p0pq+pSRg1GB4HbZbNHqDaJq/0BYP9DVhaQ+EzyuRJ0iQo+9/yyXmnvCep/u8g4u8LiCG/qv1AS8T6mbPU3S4wxPS/PSHU/h0Ppbzqcmwb0D5vAyeUuK47N+mxoZX0s8n0Ea6uQIuZfmpCQgQlotLoi+6IeDs1bjOAUXm4qjZ+bq1fyIBxa2Ec7UePlJ0imxvdqJJw9nT75e1HaXsHt7N4CNgqyXPbFRv07AEkHoRMjpUjDUtbZ6O+mY4nuCGifg2ghQvAEp+/HPXaT0wuXIoG5e/lZpA+vmv0cWI0BrtRO1Z5frSY6N64+8vdW/rkuAWwWXI+tYEzc9cha1u5R+G5TEGaPeLTngLCA== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 31:4zWryU6IjDWDXb45PxgzUa981v5vdmGKj0CWuS/QX5sM/BnKSmZ/n8Rkx0vYeUjBiNWA94DTmVy/XW5ng3SQSLTlOFgb87+SRdlO/Zmj5RoRXyvCYEs2VJIz+zNDXUF7ZrOwlNOoM/D+cZl+ziIFMA9mU1pjVP6G0oMVntdcGKU/QvLB2Q7YNcjMdkyEHcDytxn6OUDkpVxcTWOWtaCSCT7usu7V+0gmWuZyKj3kzGQyUqE1+VENwAKezFFegroIxs8vq2VhC7Sdiq6vRj90uw==; 20:mueMT4FqPiWZV7yw3FO4eGau9hlIZgEK+8vw5IJmSUoHKaK95+kx1VQiw8yGWmJmEkEvFYsTN+/66BbGUWyIdaBKR/7IiAPZbgn5Ouzzy2HN4epdkrMAvf6f8jxQb95y6oM0Z/1s4O7CYhc95PFsdf9h+6hKXXJ3/3p7VR0NLiwXYgyPReaHEq+bpkrLTzZaWLmfZAyRrBBo7BeCSFvRKWOLxvsyVAT1kqPRj+gZfBRKbrxnZM3YIDzFrpacWPiB7hP6Q4SVAnv34juCYSM45YB2ajfibm6H/ZzWcT/t7MxrRacVCA1+CsBgKPUWEqKkrnTveuxFWS+VSFAZyLBB1T26JS8EUjJl+yJ1di/cEil1qXVZbIp0uGYWlOrcaCJte4bVUgabM9Fwb71QY8nKKo55N+RQMT9xrdFzpSqzNJwZl5NngCZFOZIK2+SM+RIJPC+2tyJ7ZNqEY5hMJFblWcJ2oKZl8/Q3lQIha80p4K01ZuQdb7dTrzzCcLj9b7StFeyXICzc0YwafyZZ/w2HVwcNzJkIgKGNjRCSqsBiCImNlddJ0VmJCkCkdECAIaaw7BMtMFyDODeVLD8xkXYc98Hm7SxZrCFuMxgTYzritmM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(6041248)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:BY1PR0701MB1723; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1723; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 4:E2ac16KLxNo2Ics6zRFqDyxOLJh/3246Vp3MaKjWSOmj/TxFi+lmJwBEYl9iOvsOMHe+ELvCkhQqcryhBEu592lFTlhH49QXRIgYfrUS6S+eaWeqID9qh7d35gfLnySQhf9Jg/3e7EQnCuXtBNHWodH8eVDfIXi/x9GOYrIQpowibkXROqrzm0hdc/2ua8EsbaTwtQHmgIbY2U1WQITr54FIMrRu3mqMSBgZ24OSyQ9lOeG2vfHJAg+Pg1nWibBkSJIbIKo1hL3Gv9wDyZ8o63XhGqEflCvRJMRiaJi0tNBJ+z0UANNg8SqQWp0GK9Ym72x0+mULYCXq4k33v9XMC5A0rafbK1XnkUk2ch1EjbgeR2q8Xcahrf6ioSdBKUPyrNLcMRqSOSJu2h/UAIMBkL3fz1hBVZaHnJXC2x6ZC+RpfCQrN4Xae9GBmsoXW2jNNAc4/NrRMpDbDlSkTOx5UYMexa6n8f7+UG9YPU6msB2o2/refpgRM9lGWzSWD6no2n8KXO9vm3urHxksb3rM/aiOVrC4dpB81nxoVso5bIsYbXnr4/IGs4ogGUu0WHbhl3aXKK1AGOg3wmgcCYsCxuBeRIxXT7Z3gVEEfnZbddypbhBweC006djtsFC/08RzUe1cBbYXeL9LHOIXAOB8mC1JlWBj+XY8n59p+tumjrkDCXr7o9aaaOrsUVFlrvZ0enQnmU2Qt1oipoABcmUTLGwrNRfa1VoVWOZZv0kgia0ZqNWSO7FG1bMu8BCKh1e0 X-Forefront-PRVS: 0267E514F9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(39450400003)(39840400002)(39410400002)(39400400002)(39850400002)(377454003)(24454002)(76176999)(8676002)(6486002)(66066001)(189998001)(5660300001)(77096006)(36756003)(86152003)(8656002)(31696002)(47776003)(3846002)(6116002)(4326008)(81166006)(230700001)(83506001)(25786009)(5009440100003)(6246003)(53936002)(42882006)(6666003)(2950100002)(33646002)(54356999)(7736002)(305945005)(50986999)(38730400002)(42186005)(65826007)(110136004)(4001350100001)(31686004)(23746002)(50466002)(64126003)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1723; H:[10.160.0.41]; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BY1PR0701MB1723; 23:nfLqd94aHsuZpcH+La82bTwwcmQV9K8xAAq?= =?Windows-1252?Q?hFHbi2SCrYblLSLqrk2CGW+mI892C7OO8zYFBCMaw5b1ZuHga5z443d6?= =?Windows-1252?Q?WqjO+Cf2RNtsg+T2yuY9OBR6i/zh8197m2IUJRXp0HkNT+hBvXNUZAVp?= =?Windows-1252?Q?7tohoRdXB4iRUC9jYUi3kN6TTjrdicpCx9pRX53bm19XlTJjapivO8ns?= =?Windows-1252?Q?iYr9UhQR42A+Dsc0L4hA0GSZMTXg3SVgx5eUNddbYfNycXRK+yQmcOsl?= =?Windows-1252?Q?306edFYe62KJhGOEVONU2q1AdUJZOyjiP291itNZJ7B9fEHZdvd1hdvb?= =?Windows-1252?Q?jY7XWj3/5asRGs5Z9S2YMG3sn/z1mi7ayY6sQ4cKzQQoquaFyIQ37Lvq?= =?Windows-1252?Q?WEZAwLISU6Qoxy6voV3NLfOgGySwYD8ucYALAfchB47m+eppqFVWP0Nt?= =?Windows-1252?Q?TULZUxkK1v0au0ToR5vqGWJqYKV7DDjDrGytCsYYFKMQu0XWsrD3U6Ld?= =?Windows-1252?Q?GppV4+ZrVsBvDrhHlAHUEh6wdMdMl7Laq3qahd7xzCMgwWpkO/LjahOx?= =?Windows-1252?Q?CfrFX6EedkLoXYysmhZewmOHz1/mGgo/XE9ARHUDrGWo8YKClKSmRPOT?= =?Windows-1252?Q?MoLpC0LEhAmXnXm8euxlC1MHDho9wiJzsWzPFrkitn/GLLs28ptJ/E6e?= =?Windows-1252?Q?PiP3t4MzSFqXK66iHsMsvWIP0VRqigtsaQHLQEeEqUiVE4wOOh9b7bpW?= =?Windows-1252?Q?x6fqvXeGFAOAA9CUS53Hu8XnMt27WYcnsOwHAis//Op4D3jjsxOUsEye?= =?Windows-1252?Q?x0YAGhY4wY41q6wTbcse55EHrM0a4V8zRXXdITrRfErIo4TUnPhJbDYn?= =?Windows-1252?Q?bx5kzF9Gtj9odZYNfsoR+3AiQvZEvYwVr/RU0hdYRjSgRyWWpm8Atqxs?= =?Windows-1252?Q?ARoaYCY2MpViWwnejsIuAQNSpxSQFUGAQJtWQ9PIEf3ISp61yREedNpw?= =?Windows-1252?Q?AoERHyKD2LQ77pvfXUxTyVW4eiF5zakdbf92NdDcJK1NXP0lOWs6rLqE?= =?Windows-1252?Q?jFbKYkOhm5E5FhqPTvv0Gu1NVd+IcicJnNstBea/zqMgvBnQlui4AshG?= =?Windows-1252?Q?MPl0IXuw5OJnAjMQCn1jvYgQqC0YMqpXIkUlJNizXniPWqDXOLjsSDaR?= =?Windows-1252?Q?/WQzK6EAYs+GZmSyiFP80iJoFsaeWWEuqcJlWEBRfuiTAFHyl0h6v1zs?= =?Windows-1252?Q?6s8k43nBawWBQpg+Sqga7YAtIBsGiDJn/lOyCxOdwpHSeQ8AuqYRnQJy?= =?Windows-1252?Q?hl2krAg3l8QkcLApDEBItpF6i/RIFWzy1JWAKSch/OTCwP5I=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 6:PDTslzUcTCt7h9sFrDJq8sk/xu8p9JMnf9/71gLsYIFxiN15sHiB8zB5qvpnjQP7UebL0i5hHfAy6r01u0DUbgNi9CW4asoNu5wJ5syOphYwVAnafsEAcmub7jlwKSvASXnIx/8Pc7/JIg0BdMNTOJ3Une4jbMakuyP1Xk+4IPBSx+OenadYDzPPSCHDZRnpdA5uxDr85yuwF1kUpT8rBhOt/69OzUPMEbWHI2EmadK2sbl+mVXdHIscHB0Uj4b0FPLgZ4BRgpsHzDqnehYaIoQjjb+dgDf4wlZmn9MoNSHheksk/ozdwxO36AeKsDs7QZsr2hzl2d1ekSM27flv7tlYi8Fr9zm2DjGsCSk+rqeTX2MvMlpgMckk2ITTNUaNEX/RQTPaVbSthMciAzO2FA==; 5:RDRid1nsYpwCBE90IuqbgjQlKwAR2QPK2Zm1rjmINykOqNJBF5MCJqgZtArsRA0ZPcdTO8QGNI9MbtffPZee3dxFoEGyOgqMJtCnHo9ch2xQuWHMR27mWH7R6j8LYfOe5jUCwCa4vsb/c0rk4Xx5Eg==; 24:3eEZO+8kk2KScEaRL514cyrVhkchLhunpTDhvg0CQaci3pmxjV3LyLYugD3Z1WZ7jOS1/jgTCgqlLcZyQPUPJaFvDW9CcYZZqGzIvntg8C8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 7:ClUNCNinlBB6jeTawEc1nlG5Arey3HyNkNeapwFQkqZbatv2t0GznmoDJ8zupXCIdWbIP4030Y7Rq71kmsc2lAKeGB5hxDe9t420+tJ+Or90KAFhIBhtKDUJsjC7GS9LOdYfIknSZJN8EDvbcnXvTNaAV31k5JVqS1icjpVo2vL1tjarQm8vcz+dGyPxX67ciy+86+gyZgCJlX3YL3R+hLeFNBPnFmikCjIMJu0JLyU7JJZIa/yR2+jbSiZtxe6sNIpywKhTikM9Dt19wVzi9RMVgvDSDT0uuKONMFUgK2/YQq1e9L0f1RFls5dyxkAkfRBL/63i3ER26AAofzszZw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2017 15:28:48.9980 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1723 Subject: Re: [dpdk-dev] [PATCH v3 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: Tue, 04 Apr 2017 15:28:53 -0000 Hi Hemant, [Noticed that my first reply couldn't reach out to ML so re-sending] On Tuesday 04 April 2017 11:27 AM, Hemant Agrawal wrote: > 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 > --- > v3: fix the incorrect split > v2: separte the bug fix from change > > test/test/test_mempool.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Reviewed-by: Santosh Shukla > diff --git a/test/test/test_mempool.c b/test/test/test_mempool.c > index b9880b3..715b250 100644 > --- a/test/test/test_mempool.c > +++ b/test/test/test_mempool.c > @@ -509,6 +509,7 @@ static int test_mempool_single_consumer(void) > 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; > @@ -607,13 +608,13 @@ 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);