From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B049EA046B for ; Fri, 28 Jun 2019 15:25:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A65D537A2; Fri, 28 Jun 2019 15:25:42 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id BAFDF37A2 for ; Fri, 28 Jun 2019 15:25:41 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jun 2019 06:25:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,427,1557212400"; d="scan'208";a="246166040" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga001.jf.intel.com with ESMTP; 28 Jun 2019 06:25:39 -0700 Received: from sivswdev08.ir.intel.com (sivswdev08.ir.intel.com [10.237.217.47]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id x5SDPcu7010096; Fri, 28 Jun 2019 14:25:38 +0100 Received: from sivswdev08.ir.intel.com (localhost [127.0.0.1]) by sivswdev08.ir.intel.com with ESMTP id x5SDPcg0009146; Fri, 28 Jun 2019 14:25:38 +0100 Received: (from bairemon@localhost) by sivswdev08.ir.intel.com with LOCAL id x5SDPcgx009142; Fri, 28 Jun 2019 14:25:38 +0100 From: Bernard Iremonger To: qabuild@intel.com Cc: Bernard Iremonger , stable@dpdk.org Date: Fri, 28 Jun 2019 14:25:33 +0100 Message-Id: <1561728333-8769-2-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1561728333-8769-1-git-send-email-bernard.iremonger@intel.com> References: <1561728333-8769-1-git-send-email-bernard.iremonger@intel.com> Subject: [dpdk-stable] [DPDK 2/2] test/ipsec: fix destroy sa function X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Call rte_cryptodev_sym_session_clear() function. Cc: stable@dpdk.org Fixes: 05fe65eb66b2 ("test/ipsec: introduce functional test") Signed-off-by: Bernard Iremonger --- app/test/test_ipsec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test/test_ipsec.c b/app/test/test_ipsec.c index 2328342..ea558fd 100644 --- a/app/test/test_ipsec.c +++ b/app/test/test_ipsec.c @@ -1170,9 +1170,11 @@ static void destroy_sa(uint32_t j) { struct ipsec_unitest_params *ut = &unittest_params; + struct ipsec_testsuite_params *ts = &testsuite_params; rte_ipsec_sa_fini(ut->ss[j].sa); rte_free(ut->ss[j].sa); + rte_cryptodev_sym_session_clear(ts->valid_dev, ut->ss[j].crypto.ses); rte_cryptodev_sym_session_free(ut->ss[j].crypto.ses); memset(&ut->ss[j], 0, sizeof(ut->ss[j])); } -- 2.7.4