From patchwork Thu Nov 7 09:01:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 178792 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp723486ilf; Thu, 7 Nov 2019 01:04:40 -0800 (PST) X-Google-Smtp-Source: APXvYqylXO5pcvtyvj2tiyV6D8pV8R11g47UjI8O6BWG9QMDL1zNELiN3qzSdusPyxmb0/HQY4xc X-Received: by 2002:aa7:d391:: with SMTP id x17mr2311281edq.43.1573117480009; Thu, 07 Nov 2019 01:04:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573117480; cv=none; d=google.com; s=arc-20160816; b=ouxYT9ZHHwvREE1CZYZr6KIbNohhE4QXsPMUSZm4idV8mrPCrFVNYRVRcUlUa5fIVh tDGjF8RiZOifS0CVUM/a0UnEdEskT0udH0Biyq4RBTfG/zlIlhogOcuujl05R6VUXM6M MKoppNsDIgUhtBWAFHZjhn5eSsYnNR3Ex+/6/92ux4rIHmSW2Q2ZLiwXHoDQF5rPJ/o6 PbpKYyqJutM1m4c9jSUnPIzlN8vQCt8udHZCOY6Nc4p4NPAeWWehFo1WNy5iFceDAWut QPmwb8CbebxiUmQt5t4z0oimPsOLVPFUYrWSCGg6SabWAfK9BhzCaucksd1vx4HyGF1c CDPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=6WbYYIUx03BmoctjAPniocxHj6Pb07KYJk33L+IcTh0=; b=ZY44m6aNw0ZEJ5OPqrwlAhuGS4kZ9fWY32ZBKK2Cgu+WuIziwY0Qdzt1Fs8SeTLuDa I9epyUXK8gOn5CKUiUY8su2jJio7vZ+frK0VDLQdoC7xWYeauNJr0EAco0TbbZ+zYbxi Ebncbr7Dm9vu2aeaOv5xGp1sOa+pjAnSSJNhfMl3lFzi61+W/H0R7fvnyrU/yELRQeQB OUflNufYMqesygQeVtRHmcsWPrk2DZ6XHx/fIadQ82VoGmTSPFQTfDY9HzMM3B/lDMsz +zZCwJ7vr//UU1RNZHXUcUADnUmR4c4LD3ObXSQ/X5PDgYdH55JOwxAaq3INy3kGMULp s+Gw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id x18si968236ejo.78.2019.11.07.01.04.39; Thu, 07 Nov 2019 01:04:40 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 68C1E1E96B; Thu, 7 Nov 2019 10:04:34 +0100 (CET) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id 0C4B11E937 for ; Thu, 7 Nov 2019 10:04:32 +0100 (CET) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 9749B1A06DC; Thu, 7 Nov 2019 10:04:31 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id C70E91A0A47; Thu, 7 Nov 2019 10:04:29 +0100 (CET) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 1D0E4402B1; Thu, 7 Nov 2019 17:04:27 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org Cc: jerinjacobk@gmail.com, abhinandan.gujjar@intel.com Date: Thu, 7 Nov 2019 14:31:20 +0530 Message-Id: <20191107090121.3246-2-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191107090121.3246-1-hemant.agrawal@nxp.com> References: <20191001113339.21767-1-hemant.agrawal@nxp.com> <20191107090121.3246-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v2 2/3] test/event_crypto: fix to avail the mempool entries 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Added the missed code to avail the mempool entries before pool free. Fixes: 24054e3640a2 ("test/crypto: use separate session mempools"); Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- app/test/test_event_crypto_adapter.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/app/test/test_event_crypto_adapter.c b/app/test/test_event_crypto_adapter.c index bf83a6357..6b47a5c01 100644 --- a/app/test/test_event_crypto_adapter.c +++ b/app/test/test_event_crypto_adapter.c @@ -889,6 +889,7 @@ crypto_teardown(void) params.session_mpool = NULL; } if (params.session_priv_mpool != NULL) { + rte_mempool_avail_count(params.session_priv_mpool); rte_mempool_free(params.session_priv_mpool); params.session_priv_mpool = NULL; }