[dpdk-dev] [PATCH 2/2] app/crypto-perf: close PMD after benchmark run
Adam Dybkowski
adamx.dybkowski at intel.com
Mon Mar 1 13:21:10 CET 2021
This patch adds closing of the PMD after running the benchmark.
Signed-off-by: Adam Dybkowski <adamx.dybkowski at intel.com>
---
app/test-crypto-perf/main.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c
index 49af812d8..c1d338fa4 100644
--- a/app/test-crypto-perf/main.c
+++ b/app/test-crypto-perf/main.c
@@ -738,8 +738,10 @@ main(int argc, char **argv)
}
for (i = 0; i < nb_cryptodevs &&
- i < RTE_CRYPTO_MAX_DEVS; i++)
+ i < RTE_CRYPTO_MAX_DEVS; i++) {
rte_cryptodev_stop(enabled_cdevs[i]);
+ rte_cryptodev_close(enabled_cdevs[i]);
+ }
free_test_vector(t_vec, &opts);
@@ -758,8 +760,10 @@ main(int argc, char **argv)
}
for (i = 0; i < nb_cryptodevs &&
- i < RTE_CRYPTO_MAX_DEVS; i++)
+ i < RTE_CRYPTO_MAX_DEVS; i++) {
rte_cryptodev_stop(enabled_cdevs[i]);
+ rte_cryptodev_close(enabled_cdevs[i]);
+ }
rte_free(opts.imix_buffer_sizes);
free_test_vector(t_vec, &opts);
--
2.25.1
More information about the dev
mailing list