From c0daf3bd4b4e36375f8c338092975d61ec03a98f Mon Sep 17 00:00:00 2001 From: Ciara Power Date: Thu, 11 Nov 2021 10:56:19 +0000 Subject: [PATCH] test/crypto: remove unnecessary stats retrieval The device stats are retrieved in the testcase teardown function, but are not being used afterwards. Remove this unnecessary call. The stats retrieval for the device is being tested already by a dedicated stats testcase. Fixes: 202d375c60bc ("app/test: add cryptodev unit and performance tests") Cc: stable@dpdk.org 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 ef0433680c..10b48cdadb 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -1417,7 +1417,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_LIB_SECURITY @@ -1464,8 +1463,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.20.1