From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5318B45844; Thu, 22 Aug 2024 09:41:25 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F052342E6F; Thu, 22 Aug 2024 09:41:20 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 7B81142E56 for ; Thu, 22 Aug 2024 09:41:19 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 47M1U4Gq009927; Thu, 22 Aug 2024 00:41:18 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=S IX8RBzXbEr4LoEAUFi6FavZ2goiCu1e/zcUdbuAar4=; b=NCw2NffLEvmGZqRAY 5W8M1fTlnewGKmwAbQlGyfCY9OvRV5zbzluVjym6g9cNoksQvvahGD133ltSQqv2 KKpkwLUQc3x6JoZydo/a2O4hAtsnHlrOR/qnDxKW5wBpFALb2MJ+Nz/YuXN2BGBQ G6UWDsFysa9BzPDnfMlLnBKMyKaN/AHF4uexB9dJ9ytcgjDNbU8SDa8N5V9h49sl 6XUtHeTfhkljjJiCPupD/I6fv5LmKdmlCgEQ0Guk08y0O4t0ajbxr60iwAdnQN8P N0PDqQJ3rbpOVmI1E8D+REC/fX7uFuX/t8VXjiA7lDcyiew9BK7gSzRX89fxcMma TnNmg== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 415uqns0yd-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Aug 2024 00:41:18 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 22 Aug 2024 00:41:15 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Thu, 22 Aug 2024 00:41:15 -0700 Received: from anoobj2204.marvell.com (unknown [10.28.34.118]) by maili.marvell.com (Postfix) with ESMTP id F0F7D5B6C6A; Thu, 22 Aug 2024 00:17:11 -0700 (PDT) From: Anoob Joseph To: Akhil Goyal , Fan Zhang CC: Hemant Agrawal , Jerin Jacob , Aakash Sasidharan , Tejasree Kondoj , Vidya Sagar Velumuri , Subject: [PATCH 6/6] test/crypto: free pools in teardown Date: Thu, 22 Aug 2024 07:16:34 +0000 Message-ID: <20240822071651.2403105-7-anoobj@marvell.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240822071651.2403105-1-anoobj@marvell.com> References: <20240822071651.2403105-1-anoobj@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: RxnWaS7nvfuaw2A6ldjqRPsjp9Y8SW7R X-Proofpoint-ORIG-GUID: RxnWaS7nvfuaw2A6ldjqRPsjp9Y8SW7R X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-22_03,2024-08-19_03,2024-05-17_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Free the pools allocated in testsuite_setup. Signed-off-by: Anoob Joseph --- app/test/test_cryptodev.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 1491ff03ba..6079d10078 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -770,14 +770,19 @@ testsuite_teardown(void) struct crypto_testsuite_params *ts_params = &testsuite_params; int res; + if (ts_params->large_mbuf_pool != NULL) { + rte_mempool_free(ts_params->large_mbuf_pool); + ts_params->large_mbuf_pool = NULL; + } + if (ts_params->mbuf_pool != NULL) { - RTE_LOG(DEBUG, USER1, "CRYPTO_MBUFPOOL count %u\n", - rte_mempool_avail_count(ts_params->mbuf_pool)); + rte_mempool_free(ts_params->mbuf_pool); + ts_params->mbuf_pool = NULL; } if (ts_params->op_mpool != NULL) { - RTE_LOG(DEBUG, USER1, "CRYPTO_OP_POOL count %u\n", - rte_mempool_avail_count(ts_params->op_mpool)); + rte_mempool_free(ts_params->op_mpool); + ts_params->op_mpool = NULL; } if (ts_params->session_mpool != NULL) { -- 2.45.2