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:
parent
459369fc95
commit
9189644f8b
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user