From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 4837A9AE9 for ; Tue, 1 Mar 2016 16:56:41 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 01 Mar 2016 07:56:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,523,1449561600"; d="scan'208";a="898539008" Received: from sie-lab-214-241.ir.intel.com (HELO silpixa00382162.ir.intel.com) ([10.237.214.241]) by orsmga001.jf.intel.com with ESMTP; 01 Mar 2016 07:56:38 -0800 From: Deepak Kumar JAIN To: dev@dpdk.org Date: Tue, 1 Mar 2016 16:55:16 +0000 Message-Id: <1456851316-22234-1-git-send-email-deepak.k.jain@intel.com> X-Mailer: git-send-email 2.1.0 Subject: [dpdk-dev] [PATCH] app/test: fix qat autotest failure X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2016 15:56:41 -0000 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) This patch depends on following patch: cryptodev API changes http://dpdk.org/ml/archives/dev/2016-February/034212.html Signed-off-by: Deepak Kumar JAIN --- app/test/test_cryptodev.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 208fc14..acba98a 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -1845,6 +1845,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 */ -- 2.1.0