From: Bernard Iremonger Date: Fri, 28 Jun 2019 13:29:22 +0000 (+0100) Subject: test/ipsec: fix destroy SA X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=00f846ca9c95ae3331f17799630d7ec849ef6f97;p=dpdk.git test/ipsec: fix destroy SA Call rte_cryptodev_sym_session_clear() function. Fixes: 05fe65eb66b2 ("test/ipsec: introduce functional test") Cc: stable@dpdk.org Signed-off-by: Bernard Iremonger Acked-by: Akhil Goyal --- diff --git a/app/test/test_ipsec.c b/app/test/test_ipsec.c index df878846e5..392bf90545 100644 --- a/app/test/test_ipsec.c +++ b/app/test/test_ipsec.c @@ -1171,9 +1171,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])); }