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 AF646A054F; Mon, 1 Mar 2021 13:21:15 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 97BC122A27E; Mon, 1 Mar 2021 13:21:15 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id A990822A23C for ; Mon, 1 Mar 2021 13:21:13 +0100 (CET) IronPort-SDR: tcCOn2jDfhIZ1aH2ibHRRJlIOjjkbYN5rbYXstCOYLCNBwhkWxiHWigcQXU4ynHmaiZuITRPoF TM29baQdpe2Q== X-IronPort-AV: E=McAfee;i="6000,8403,9909"; a="185766836" X-IronPort-AV: E=Sophos;i="5.81,215,1610438400"; d="scan'208";a="185766836" 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:12 -0800 IronPort-SDR: 2EFowZ2rj9Ggtc+KQC3L3OKzhmg84mfz/7Cnup5NyPQCYqejgrwvkEmTt/A4IzsHCxSqxMQ+fZ jWG76UzMStLQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,215,1610438400"; d="scan'208";a="505044224" Received: from silpixa00400308.ir.intel.com ([10.237.214.143]) by fmsmga001.fm.intel.com with ESMTP; 01 Mar 2021 04:21:11 -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:09 +0000 Message-Id: <20210301122110.2586-1-adamx.dybkowski@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index f91debc16..7dcd255de 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -976,8 +976,9 @@ ut_teardown(void) rte_cryptodev_stats_get(ts_params->valid_devs[0], &stats); - /* Stop the device */ + /* Stop and close the device */ rte_cryptodev_stop(ts_params->valid_devs[0]); + rte_cryptodev_close(ts_params->valid_devs[0]); } static int -- 2.25.1