diff mbox series

[API-NEXT,v1,2/2] test: performance: crypto: free crypto-out queue

Message ID 1503543605-9923-3-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v1,1/2] test: performance: crypto: fix packet freeing | expand

Commit Message

Github ODP bot Aug. 24, 2017, 3 a.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Free crypto-out queue if it was created.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 143 (lumag:fix-crypto-perf)
 ** https://github.com/Linaro/odp/pull/143
 ** Patch: https://github.com/Linaro/odp/pull/143.patch
 ** Base sha: 859293ad9b3c862264bb0fbfe8e7037b5e04d084
 ** Merge commit sha: f0e88d2b61da20ba130f3e8a895643a37db524b0
 **/
 test/common_plat/performance/odp_crypto.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/test/common_plat/performance/odp_crypto.c b/test/common_plat/performance/odp_crypto.c
index 8449f1fc..9fc13400 100644
--- a/test/common_plat/performance/odp_crypto.c
+++ b/test/common_plat/performance/odp_crypto.c
@@ -835,6 +835,8 @@  int main(int argc, char *argv[])
 		}
 	}
 
+	if (cargs.schedule || cargs.poll)
+		odp_queue_destroy(out_queue);
 	if (odp_pool_destroy(pool)) {
 		app_err("Error: pool destroy\n");
 		exit(EXIT_FAILURE);