Reset the crypto device after asym tests so that the state from
asymmetric tests won't affect the tests executed later.

Signed-off-by: Anoob Joseph <ano...@marvell.com>
---
 app/test/test_cryptodev_asym.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c
index 9da54530e5..c58c7f488b 100644
--- a/app/test/test_cryptodev_asym.c
+++ b/app/test/test_cryptodev_asym.c
@@ -904,6 +904,12 @@ testsuite_teardown(void)
 {
        struct crypto_testsuite_params_asym *ts_params = &testsuite_params;
 
+       /* Reset device */
+       ts_params->qp_conf.mp_session = NULL;
+       ts_params->conf.ff_disable = 0;
+       if (rte_cryptodev_configure(ts_params->valid_devs[0], &ts_params->conf))
+               RTE_LOG(DEBUG, USER1, "Could not reset cryptodev\n");
+
        if (ts_params->op_mpool != NULL) {
                RTE_LOG(DEBUG, USER1, "CRYPTO_OP_POOL count %u\n",
                rte_mempool_avail_count(ts_params->op_mpool));
-- 
2.25.1

Reply via email to