From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 0ED8ADE3 for ; Tue, 17 Jan 2017 11:17:56 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP; 17 Jan 2017 02:17:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,243,1477983600"; d="scan'208";a="923424461" Received: from irsmsx107.ger.corp.intel.com ([163.33.3.99]) by orsmga003.jf.intel.com with ESMTP; 17 Jan 2017 02:17:54 -0800 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.173]) by IRSMSX107.ger.corp.intel.com ([169.254.10.3]) with mapi id 14.03.0248.002; Tue, 17 Jan 2017 10:17:53 +0000 From: "De Lara Guarch, Pablo" To: "Kusztal, ArkadiuszX" , "dev@dpdk.org" CC: "Trahe, Fiona" , "Griffin, John" , "Jain, Deepak K" Thread-Topic: [PATCH] app/test: fix symmetric session free in crypto perf tests Thread-Index: AQHSb+61gSEYqnKrrUiArKB6nuKSmaE8dXiw Date: Tue, 17 Jan 2017 10:17:53 +0000 Message-ID: References: <1484567398-32721-1-git-send-email-arkadiuszx.kusztal@intel.com> In-Reply-To: <1484567398-32721-1-git-send-email-arkadiuszx.kusztal@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMDQ4ZmVjYzAtNTZiNy00NmUxLTg1NGUtOWQ3YjhkOTkzZmYxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlVWc29oUHQxZHY0ckdXZVBmNmV4bFc1ZXM1T1V5YkRQUkRYcVgrRDhueGM9In0= x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] app/test: fix symmetric session free in crypto perf tests X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2017 10:17:57 -0000 Hi Arek, > -----Original Message----- > From: Kusztal, ArkadiuszX > Sent: Monday, January 16, 2017 11:50 AM > To: dev@dpdk.org > Cc: Trahe, Fiona; De Lara Guarch, Pablo; Griffin, John; Jain, Deepak K; > Kusztal, ArkadiuszX > Subject: [PATCH] app/test: fix symmetric session free in crypto perf test= s >=20 > This commit fixes problem with deallocation of symmetric > session entries in cryptodev performance tests. >=20 > Fixes: 390919829fdb ("app/test: update AES SHA performance test") > Fixes: 79521c438363 ("app/test: add AES GCM performance test") >=20 > Signed-off-by: Arek Kusztal > --- > app/test/test_cryptodev_perf.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/app/test/test_cryptodev_perf.c > b/app/test/test_cryptodev_perf.c > index 7751ff2..8c89a65 100644 > --- a/app/test/test_cryptodev_perf.c > +++ b/app/test/test_cryptodev_perf.c > @@ -3056,6 +3056,7 @@ test_perf_aes_sha(uint8_t dev_id, uint16_t > queue_id, >=20 > for (i =3D 0; i < pparams->burst_size * NUM_MBUF_SETS; i++) > rte_pktmbuf_free(mbufs[i]); > + rte_cryptodev_sym_session_free(dev_id, sess); >=20 > printf("\n"); > return TEST_SUCCESS; > @@ -3980,6 +3981,7 @@ perf_AES_GCM(uint8_t dev_id, uint16_t > queue_id, >=20 > for (i =3D 0; i < burst; i++) > rte_pktmbuf_free(mbufs[i]); > + rte_cryptodev_sym_session_free(dev_id, sess); >=20 > return 0; > } > -- > 2.1.0 There are other tests that have this issue as well, such as "test_perf_snow= 3g". Could you fix these too? Thanks, Pablo