app/crypto-perf: stop crypto devices after test

Call of rte_cryptodev_stop() function from test destructors
is added.

Fixes: f8be1786b1 ("app/crypto-perf: introduce performance test application")
Cc: stable@dpdk.org

Signed-off-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
Kirill Rybalchenko 2017-06-14 09:44:04 +01:00 committed by Pablo de Lara
parent 459369fc95
commit 9189644f8b
3 changed files with 6 additions and 1 deletions

View 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);
}

View File

@ -528,5 +528,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);
}

View File

@ -588,5 +588,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);
}