Skip to contentSkip to conversation

test/crypto: fix unnecessary stats retrieval

PATCH Applied Ciara Power 3 participants 3 messages Nov 11, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/crypto: fix 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")
---
 app/test/test_cryptodev.c | 3 ---
 1 file changed, 3 deletions(-)
app/test/test_cryptodev.c +0 -3
index 52457596e2..a2f5e71be0 100644
@@ -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]);
 }
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines

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")
Applied
#2 lore raw
Quoted 6 lines
Quoted 1 line

The device stats are retrieved in the testcase teardown function, but are

not

Quoted 4 lines

being used afterwards. Remove this unnecessary call.
The stats retrieval for the device is being tested already by a dedicated stats testcase.

Quoted 8 lines
Quoted 1 line
Fixes 202d375c60bc ("app/test: add cryptodev unit and performance

tests")

Quoted 4 lines

Applied to dpdk-next-crypto

Thanks.