From patchwork Tue Oct 1 11:33:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 174836 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp8415794ill; Tue, 1 Oct 2019 04:36:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqygwm20pyAzQCJhkSXvUC4BMSpztQfCWhYTZhn/6C/khAafHT7XcApqWtKude6Zyx58m0D7 X-Received: by 2002:a17:906:1801:: with SMTP id v1mr7661990eje.146.1569929783174; Tue, 01 Oct 2019 04:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569929783; cv=none; d=google.com; s=arc-20160816; b=ea+Dfc/u0n77ZQEkcVrb5D3NGkgzRrc2j0KSIShMqT9d1SMUtOKRQ57bjHUYoJsxqk xH5w/aMrfI+TKDmn+LH/o1a9O2vaKA4ELsMFcIKnPuzmfbdR8GQPbRgT+FAveJ+X7z5N Uin2/tGsuqjFBfdYXnB15+5hSeIYciT0UdOJ4D4ea544TI5uaNPzUH9BttYTRAVxF903 33wMqdtvmgUouVeTPxWcuHN3+qsMOA9J0uiydFFuWgkRU4IneDLk25fOkY6V44q63D4e dTbvc96yxSWPHf90cpGYHHXBup6pe5l3iKS14vyWPmzHHsWvYLT36c91/vg/XVU54DoU k5fA== 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=SirNldMWwB4Vf/RI4a3rU83JbDUuh59bivDmjL5baag=; b=pKxezUl72eQxx7X0JsuMNNXDSSBsLBJAQPxkjsmQ/j1o6Pn1ttkkyKTdNiRtqo18pP WKj475rQUpC1q/QY+cP5BqOp9D3W7Ct9KR4ZHcUoTTN0iqyGsFk4Jl7c0URA2x9yzUYo DIzZMaj9sI0ls+iW5hQbMVOazv+2HREqEYLpx7yJ9mIVwKuM1JcV93wt0QfC13twYXQm weX9PFt6oGdxUXv0ODCJWJYYd/n4vXiidwOFpvbxF7u7gne75xqiNFKrpkd7KWel2AqJ jdJysAcPPLrLYv3o+ItTFlRVaLlt+1OxVxoJKFBdrhdc0v/i0rvro/BG6gxar3MVuRo3 6UYA== 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 d9si8942596edb.371.2019.10.01.04.36.23; Tue, 01 Oct 2019 04:36:23 -0700 (PDT) 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 6441A49DF; Tue, 1 Oct 2019 13:36:10 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 889F658C4; Tue, 1 Oct 2019 13:36:07 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 3ABCD200557; Tue, 1 Oct 2019 13:36:07 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 191A62001EF; Tue, 1 Oct 2019 13:36:05 +0200 (CEST) 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 97E044030D; Tue, 1 Oct 2019 19:36:01 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org Cc: jerinj@marvell.com, abhinandan.gujjar@intel.com, stable@dpdk.org Date: Tue, 1 Oct 2019 17:03:36 +0530 Message-Id: <20191001113339.21767-3-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191001113339.21767-1-hemant.agrawal@nxp.com> References: <20191001113339.21767-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 3/6] 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 --- The file location has been changed, thus check-git-log is giving err on this patch 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 d3d19b98e..8d42462d8 100644 --- a/app/test/test_event_crypto_adapter.c +++ b/app/test/test_event_crypto_adapter.c @@ -905,6 +905,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; }