From: Deepak Kumar Jain Date: Tue, 1 Mar 2016 16:55:16 +0000 (+0000) Subject: app/test: fix qat autotest failure X-Git-Tag: spdx-start~7505 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1b9cb73ecef109593081ab9efbd9d1429607bb99;p=dpdk.git app/test: fix qat autotest failure This patch fix the QAT autotest failure when run for multiple times. it was caused as mbuf was not freed. Fixes: 202d375c60b (app/test: add cryptodev unit and performance tests) Signed-off-by: Deepak Kumar Jain Acked-by: Fiona Trahe --- diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 3240ecd269..b247a696a5 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -1844,6 +1844,18 @@ test_multi_session(void) sessions[i], ut_params, ts_params), "Failed to perform decrypt on request " "number %u.", i); + /* free crypto operation structure */ + if (ut_params->op) + rte_crypto_op_free(ut_params->op); + + /* + * free mbuf - both obuf and ibuf are usually the same, + * but rte copes even if we call free twice + */ + if (ut_params->obuf) { + rte_pktmbuf_free(ut_params->obuf); + ut_params->obuf = 0; + } } /* Next session create should fail */