[1/2] test/crypto: close PMD after tests

Message ID 20210301122110.2586-1-adamx.dybkowski@intel.com (mailing list archive)
State Superseded, archived
Headers
Series [1/2] test/crypto: close PMD after tests |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Dybkowski, AdamX March 1, 2021, 12:21 p.m. UTC
  This patch adds closing of the PMD after running the tests.

Signed-off-by: Adam Dybkowski <adamx.dybkowski@intel.com>
---
 app/test/test_cryptodev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index f91debc16..7dcd255de 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -976,8 +976,9 @@  ut_teardown(void)
 
 	rte_cryptodev_stats_get(ts_params->valid_devs[0], &stats);
 
-	/* Stop the device */
+	/* Stop and close the device */
 	rte_cryptodev_stop(ts_params->valid_devs[0]);
+	rte_cryptodev_close(ts_params->valid_devs[0]);
 }
 
 static int