DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] test/crypto: reset device after asym tests
@ 2022-11-11 13:53 Anoob Joseph
  2022-11-15  9:29 ` Akhil Goyal
  0 siblings, 1 reply; 2+ messages in thread
From: Anoob Joseph @ 2022-11-11 13:53 UTC (permalink / raw)
  To: Ciara Power, Akhil Goyal, Jerin Jacob; +Cc: Tejasree Kondoj, dev

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 <anoobj@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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [PATCH] test/crypto: reset device after asym tests
  2022-11-11 13:53 [PATCH] test/crypto: reset device after asym tests Anoob Joseph
@ 2022-11-15  9:29 ` Akhil Goyal
  0 siblings, 0 replies; 2+ messages in thread
From: Akhil Goyal @ 2022-11-15  9:29 UTC (permalink / raw)
  To: Anoob Joseph, Ciara Power, Jerin Jacob Kollanukkaran; +Cc: Tejasree Kondoj, dev

> Subject: [PATCH] test/crypto: reset device after asym tests
> 
> 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 <anoobj@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>

Applied to dpdk-next-crypto

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-15  9:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-11 13:53 [PATCH] test/crypto: reset device after asym tests Anoob Joseph
2022-11-15  9:29 ` Akhil Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).