From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <yliu@fridaylinux.org>
Received: from mail-pg0-f47.google.com (mail-pg0-f47.google.com [74.125.83.47])
 by dpdk.org (Postfix) with ESMTP id 435CE7CDE
 for <stable@dpdk.org>; Mon, 21 Aug 2017 11:35:02 +0200 (CEST)
Received: by mail-pg0-f47.google.com with SMTP id n4so33227039pgn.1
 for <stable@dpdk.org>; Mon, 21 Aug 2017 02:35:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=fridaylinux-org.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=Aq8G/RY+YF9karHUgylcTrVk02dEuLEvN9aujZGGYgs=;
 b=xTl1RnGj2OnQ7xeDSPXAK/0OGL0hqS5X/PehvPZj4HCnTLvSM435UJkqtNkxwUpR3/
 Fzr5wJg1JzsCUsGoiHQDEKuPaNh7C0IVPzc68dccavAGItaWkp7fVfs/9v9spv/3e7G3
 PZQHguAZ2kMgI3cVIRCb/K9Q5DOpYOYrlAVxMhsG94eCfOh2gLlvH2C5VBh5cRe+wh+p
 U9hu8ceeC1X7s9oPMM/3IWb35Iq0CEHqkRXbMtYFIddjwDlMzEiP17yerzGbpOwSLseE
 NuGpmqwxziNOswlduNbuCyWQMNnFBFJw99SlNgDZX8FeO9Y1f9BoBmNNgH73BgKqsdtZ
 JU2w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=Aq8G/RY+YF9karHUgylcTrVk02dEuLEvN9aujZGGYgs=;
 b=Nuz9ev1x/JoMU3XwDR8oEf3PZlgF9atJ6wiLlE2j8Unll3jJb/gzrJSjNbP4HcqqtC
 V24XXEVYOrbx/XzkEz393k3x1iKgxCi1Sa6bS9HWkzgCY/d6HEQjAT8dNYQrb/IdQFrQ
 8ydoVRPhmK56oWFO+PzOZm0rtrx83rOrciHugXqsqEESbGY8KL4Rcroj5W//X1KXxyHu
 /UwlcfsUuGiaZA45R/ZOiLGvjVLnjF9PAukFu5stKhiGgAw/QxIWduEo/fRutdq9dgT0
 WZhvOSBERvn5dDiietSGTyri9bainK13AMTcbEr4B27Vh58S6MxMki+P+b1ydSgqejjw
 aKyQ==
X-Gm-Message-State: AHYfb5gzfDwXu3KgQ1agVtOUeN2reXGo/YDe4ROTrz0iZqzPLYtUoyRy
 hcNdLj0P+YQgH7Brs2VKsg==
X-Received: by 10.99.97.207 with SMTP id v198mr12783308pgb.346.1503308101595; 
 Mon, 21 Aug 2017 02:35:01 -0700 (PDT)
Received: from localhost.localdomain ([45.63.61.64])
 by smtp.gmail.com with ESMTPSA id 69sm23355087pfh.186.2017.08.21.02.34.56
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
 Mon, 21 Aug 2017 02:35:00 -0700 (PDT)
From: Yuanhan Liu <yliu@fridaylinux.org>
To: Kirill Rybalchenko <kirill.rybalchenko@intel.com>
Cc: Pablo de Lara <pablo.de.lara.guarch@intel.com>,
 dpdk stable <stable@dpdk.org>, Yuanhan Liu <yliu@fridaylinux.org>
Date: Mon, 21 Aug 2017 17:30:37 +0800
Message-Id: <1503307878-16728-23-git-send-email-yliu@fridaylinux.org>
X-Mailer: git-send-email 2.7.4
In-Reply-To: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org>
References: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org>
Subject: [dpdk-stable] patch 'app/crypto-perf: stop crypto devices after
	test' has been queued to stable release 17.05.2
X-BeenThere: stable@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches for DPDK stable branches <stable.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/stable>,
 <mailto:stable-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/stable/>
List-Post: <mailto:stable@dpdk.org>
List-Help: <mailto:stable-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Mon, 21 Aug 2017 09:35:02 -0000

Hi,

FYI, your patch has been queued to stable release 17.05.2

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 08/24/17. So please
shout if anyone has objections.

Thanks.

	--yliu

---
>>From bd7b64d5ef5ffc1988186a4a4f9ec9db0f87ad9e Mon Sep 17 00:00:00 2001
From: Kirill Rybalchenko <kirill.rybalchenko@intel.com>
Date: Wed, 14 Jun 2017 09:44:04 +0100
Subject: [PATCH] app/crypto-perf: stop crypto devices after test

[ upstream commit 9189644f8bac43979920f1c5c64900db5736649f ]

Call of rte_cryptodev_stop() function from test destructors
is added.

Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application")

Signed-off-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
 app/test-crypto-perf/cperf_test_latency.c    | 3 ++-
 app/test-crypto-perf/cperf_test_throughput.c | 2 ++
 app/test-crypto-perf/cperf_test_verify.c     | 2 ++
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/app/test-crypto-perf/cperf_test_latency.c b/app/test-crypto-perf/cperf_test_latency.c
index e61ac97..fd974c4 100644
--- a/app/test-crypto-perf/cperf_test_latency.c
+++ b/app/test-crypto-perf/cperf_test_latency.c
@@ -547,6 +547,7 @@ cperf_latency_test_destructor(void *arg)
 	if (ctx == NULL)
 		return;
 
-	cperf_latency_test_free(ctx, ctx->options->pool_sz);
+	rte_cryptodev_stop(ctx->dev_id);
 
+	cperf_latency_test_free(ctx, ctx->options->pool_sz);
 }
diff --git a/app/test-crypto-perf/cperf_test_throughput.c b/app/test-crypto-perf/cperf_test_throughput.c
index 61b27ea..be683cd 100644
--- a/app/test-crypto-perf/cperf_test_throughput.c
+++ b/app/test-crypto-perf/cperf_test_throughput.c
@@ -514,5 +514,7 @@ cperf_throughput_test_destructor(void *arg)
 	if (ctx == NULL)
 		return;
 
+	rte_cryptodev_stop(ctx->dev_id);
+
 	cperf_throughput_test_free(ctx, ctx->options->pool_sz);
 }
diff --git a/app/test-crypto-perf/cperf_test_verify.c b/app/test-crypto-perf/cperf_test_verify.c
index 454221e..a842f59 100644
--- a/app/test-crypto-perf/cperf_test_verify.c
+++ b/app/test-crypto-perf/cperf_test_verify.c
@@ -575,5 +575,7 @@ cperf_verify_test_destructor(void *arg)
 	if (ctx == NULL)
 		return;
 
+	rte_cryptodev_stop(ctx->dev_id);
+
 	cperf_verify_test_free(ctx, ctx->options->pool_sz);
 }
-- 
2.7.4