app/crypto-perf: stop crypto devices after test
[dpdk.git] / app / test-crypto-perf / cperf_test_latency.c
index 1a42602..3389615 100644 (file)
@@ -579,6 +579,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);
 }