summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Rybalchenko <kirill.rybalchenko@intel.com>2017-06-14 09:44:04 +0100
committerYuanhan Liu <yliu@fridaylinux.org>2017-08-29 14:50:28 +0800
commitbf2ee615370feadc9ef7f00aa9e80f816c088887 (patch)
tree7a47cfa2e91bbb99523b8fc76de7ef45df6ee95a
parente1ee9cb30063b9c0075b8c2ca17392fbf22c0f38 (diff)
downloaddpdk-stable-bf2ee615370feadc9ef7f00aa9e80f816c088887.zip
dpdk-stable-bf2ee615370feadc9ef7f00aa9e80f816c088887.tar.gz
dpdk-stable-bf2ee615370feadc9ef7f00aa9e80f816c088887.tar.xz
app/crypto-perf: stop crypto devices after test
[ upstream commit 9189644f8bac43979920f1c5c64900db5736649f ] Call of rte_cryptodev_stop() function from test destructors is added. Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application") Signed-off-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
-rw-r--r--app/test-crypto-perf/cperf_test_latency.c3
-rw-r--r--app/test-crypto-perf/cperf_test_throughput.c2
-rw-r--r--app/test-crypto-perf/cperf_test_verify.c2
3 files changed, 6 insertions, 1 deletions
diff --git a/app/test-crypto-perf/cperf_test_latency.c b/app/test-crypto-perf/cperf_test_latency.c
index e61ac97..fd974c4 100644
--- a/app/test-crypto-perf/cperf_test_latency.c
+++ b/app/test-crypto-perf/cperf_test_latency.c
@@ -547,6 +547,7 @@ cperf_latency_test_destructor(void *arg)
if (ctx == NULL)
return;
- cperf_latency_test_free(ctx, ctx->options->pool_sz);
+ rte_cryptodev_stop(ctx->dev_id);
+ cperf_latency_test_free(ctx, ctx->options->pool_sz);
}
diff --git a/app/test-crypto-perf/cperf_test_throughput.c b/app/test-crypto-perf/cperf_test_throughput.c
index 61b27ea..be683cd 100644
--- a/app/test-crypto-perf/cperf_test_throughput.c
+++ b/app/test-crypto-perf/cperf_test_throughput.c
@@ -514,5 +514,7 @@ cperf_throughput_test_destructor(void *arg)
if (ctx == NULL)
return;
+ rte_cryptodev_stop(ctx->dev_id);
+
cperf_throughput_test_free(ctx, ctx->options->pool_sz);
}
diff --git a/app/test-crypto-perf/cperf_test_verify.c b/app/test-crypto-perf/cperf_test_verify.c
index 454221e..a842f59 100644
--- a/app/test-crypto-perf/cperf_test_verify.c
+++ b/app/test-crypto-perf/cperf_test_verify.c
@@ -575,5 +575,7 @@ cperf_verify_test_destructor(void *arg)
if (ctx == NULL)
return;
+ rte_cryptodev_stop(ctx->dev_id);
+
cperf_verify_test_free(ctx, ctx->options->pool_sz);
}