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 270BFA0579; Fri, 9 Apr 2021 14:13:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0D4CE140F23; Fri, 9 Apr 2021 14:13:23 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id EEC51140F20 for ; Fri, 9 Apr 2021 14:13:21 +0200 (CEST) IronPort-SDR: boOS1lW5YN2O7XjmW2osySMe2bfRwmc7yLXr6pR8nRGMZDsXwI0ruJ31JlbUDaJ57XalztL9Xk yJQgKnRXI/DQ== X-IronPort-AV: E=McAfee;i="6000,8403,9948"; a="173832427" X-IronPort-AV: E=Sophos;i="5.82,209,1613462400"; d="scan'208";a="173832427" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2021 05:13:20 -0700 IronPort-SDR: gSGoTj8itD3q77N+TFQ3y/Iuv2FGTTf47cks96dPdNi3asJsmrnpCyWygmEcgUM50NJCIG10wI 1HSWKjFmOQqQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,209,1613462400"; d="scan'208";a="450204231" Received: from silpixa00399302.ir.intel.com ([10.237.214.136]) by fmsmga002.fm.intel.com with ESMTP; 09 Apr 2021 05:13:19 -0700 From: Adam Dybkowski To: dev@dpdk.org, declan.doherty@intel.com, arkadiuszx.kusztal@intel.com, gakhil@marvell.com Cc: Adam Dybkowski Date: Fri, 9 Apr 2021 13:13:00 +0100 Message-Id: <20210409121301.57789-2-adamx.dybkowski@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20210409121301.57789-1-adamx.dybkowski@intel.com> References: <20210308125708.31525-1-adamx.dybkowski@intel.com> <20210409121301.57789-1-adamx.dybkowski@intel.com> Subject: [dpdk-dev] [PATCH v3 1/2] test/crypto: close PMD after tests 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 Sender: "dev" This patch adds closing of the PMD after running the tests. Signed-off-by: Adam Dybkowski --- app/test/test_cryptodev.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index f91debc168..d68855c442 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -842,6 +842,7 @@ static void testsuite_teardown(void) { struct crypto_testsuite_params *ts_params = &testsuite_params; + int res; if (ts_params->mbuf_pool != NULL) { RTE_LOG(DEBUG, USER1, "CRYPTO_MBUFPOOL count %u\n", @@ -863,6 +864,10 @@ testsuite_teardown(void) rte_mempool_free(ts_params->session_mpool); ts_params->session_mpool = NULL; } + + res = rte_cryptodev_close(ts_params->valid_devs[0]); + if (res) + RTE_LOG(ERR, USER1, "Crypto device close error %d\n", res); } static int -- 2.25.1