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 3BFF5A0C4C for ; Wed, 1 Dec 2021 12:03:20 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 266CD40140; Wed, 1 Dec 2021 12:03:20 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id D25C840140 for ; Wed, 1 Dec 2021 12:03:17 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10184"; a="322680798" X-IronPort-AV: E=Sophos;i="5.87,278,1631602800"; d="scan'208";a="322680798" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2021 03:03:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,278,1631602800"; d="scan'208";a="477504751" Received: from silpixa00400355.ir.intel.com (HELO silpixa00400355.ger.corp.intel.com) ([10.237.222.49]) by orsmga002.jf.intel.com with ESMTP; 01 Dec 2021 03:03:15 -0800 From: Ciara Power To: stable@dpdk.org Cc: roy.fan.zhang@intel.com, christian.ehrhardt@canonical.com, Ciara Power , Anoob Joseph , Declan Doherty Subject: [PATCH 19.11] test/crypto: fix unnecessary stats retrieval Date: Wed, 1 Dec 2021 11:03:12 +0000 Message-Id: <20211201110312.2263792-1-ciara.power@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org [ upstream commit c0daf3bd4b4e36375f8c338092975d61ec03a98f ] The device stats are retrieved in the testcase teardown function, but are not being used afterwards. Remove this unnecessary call. Fixes: 202d375c60bc ("app/test: add cryptodev unit and performance tests") Signed-off-by: Ciara Power Acked-by: Anoob Joseph --- app/test/test_cryptodev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 189f7be4a..c1fee1686 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -581,7 +581,6 @@ ut_teardown(void) { struct crypto_testsuite_params *ts_params = &testsuite_params; struct crypto_unittest_params *ut_params = &unittest_params; - struct rte_cryptodev_stats stats; /* free crypto session structure */ #ifdef RTE_LIBRTE_SECURITY @@ -628,8 +627,6 @@ ut_teardown(void) RTE_LOG(DEBUG, USER1, "CRYPTO_MBUFPOOL count %u\n", rte_mempool_avail_count(ts_params->mbuf_pool)); - rte_cryptodev_stats_get(ts_params->valid_devs[0], &stats); - /* Stop the device */ rte_cryptodev_stop(ts_params->valid_devs[0]); } -- 2.25.1