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 6A985A054F; Mon, 1 Mar 2021 13:21:22 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7144222A289; Mon, 1 Mar 2021 13:21:17 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id E5D3322A23C for ; Mon, 1 Mar 2021 13:21:14 +0100 (CET) IronPort-SDR: HzocMRISCtNPpIB24mieQFbLphYNVUQc1jCRnuPNH8S3e6JPPBgJHw4ZiU6UxWc1lziDAv89JF o2dMKHGawTdQ== X-IronPort-AV: E=McAfee;i="6000,8403,9909"; a="185766844" X-IronPort-AV: E=Sophos;i="5.81,215,1610438400"; d="scan'208";a="185766844" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2021 04:21:14 -0800 IronPort-SDR: f/+b1WSczFGcdzDrmxC5aJB4g0QdDm6l4WYAHWKYiFKgHzrEh45CA/OnnqUcr1LZcDxhCPSivT HvnTGArywCBA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,215,1610438400"; d="scan'208";a="505044242" Received: from silpixa00400308.ir.intel.com ([10.237.214.143]) by fmsmga001.fm.intel.com with ESMTP; 01 Mar 2021 04:21:12 -0800 From: Adam Dybkowski To: dev@dpdk.org, declan.doherty@intel.com, arkadiuszx.kusztal@intel.com Cc: Adam Dybkowski Date: Mon, 1 Mar 2021 12:21:10 +0000 Message-Id: <20210301122110.2586-2-adamx.dybkowski@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210301122110.2586-1-adamx.dybkowski@intel.com> References: <20210301122110.2586-1-adamx.dybkowski@intel.com> Subject: [dpdk-dev] [PATCH 2/2] app/crypto-perf: close PMD after benchmark run 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 benchmark. Signed-off-by: Adam Dybkowski --- app/test-crypto-perf/main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c index 49af812d8..c1d338fa4 100644 --- a/app/test-crypto-perf/main.c +++ b/app/test-crypto-perf/main.c @@ -738,8 +738,10 @@ main(int argc, char **argv) } for (i = 0; i < nb_cryptodevs && - i < RTE_CRYPTO_MAX_DEVS; i++) + i < RTE_CRYPTO_MAX_DEVS; i++) { rte_cryptodev_stop(enabled_cdevs[i]); + rte_cryptodev_close(enabled_cdevs[i]); + } free_test_vector(t_vec, &opts); @@ -758,8 +760,10 @@ main(int argc, char **argv) } for (i = 0; i < nb_cryptodevs && - i < RTE_CRYPTO_MAX_DEVS; i++) + i < RTE_CRYPTO_MAX_DEVS; i++) { rte_cryptodev_stop(enabled_cdevs[i]); + rte_cryptodev_close(enabled_cdevs[i]); + } rte_free(opts.imix_buffer_sizes); free_test_vector(t_vec, &opts); -- 2.25.1