From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by dpdk.org (Postfix) with ESMTP id B27A923D for ; Mon, 30 Jul 2018 18:20:31 +0200 (CEST) Received: from 1.general.paelzer.uk.vpn ([10.172.196.172] helo=lap.fritz.box) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1fkAr6-00009D-Pv; Mon, 30 Jul 2018 16:17:08 +0000 From: Christian Ehrhardt To: Hemant Agrawal Cc: Pablo de Lara , dpdk stable Date: Mon, 30 Jul 2018 18:12:13 +0200 Message-Id: <20180730161342.16566-88-christian.ehrhardt@canonical.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180730161342.16566-1-christian.ehrhardt@canonical.com> References: <20180730161342.16566-1-christian.ehrhardt@canonical.com> Subject: [dpdk-stable] patch 'test/crypto: fix device id when stopping port' has been queued to stable release 18.05.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2018 16:20:31 -0000 Hi, FYI, your patch has been queued to stable release 18.05.1 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/01/18. So please shout if anyone has objections. Thanks. Christian Ehrhardt --- >>From 92b9ac5feadd02d178c615eb26285ce24eec7458 Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Wed, 4 Jul 2018 15:19:38 +0530 Subject: [PATCH] test/crypto: fix device id when stopping port [ upstream commit bb6f0b734f306c48bedac0df66cc9b8f62b595aa ] dev_id is valid, while ts_params->valid_devs[devid] may result a different value in case multiple devices are present and any of the device is being used. Fixes: 202d375c60bc ("app/test: add cryptodev unit and performance tests") Signed-off-by: Hemant Agrawal Acked-by: Pablo de Lara --- test/test/test_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test/test_cryptodev.c b/test/test/test_cryptodev.c index 389f79677..e252feeaa 100644 --- a/test/test/test_cryptodev.c +++ b/test/test/test_cryptodev.c @@ -585,7 +585,7 @@ test_device_configure_invalid_dev_id(void) dev_id = ts_params->valid_devs[ts_params->valid_dev_count - 1]; /* Stop the device in case it's started so it can be configured */ - rte_cryptodev_stop(ts_params->valid_devs[dev_id]); + rte_cryptodev_stop(dev_id); TEST_ASSERT_SUCCESS(rte_cryptodev_configure(dev_id, &ts_params->conf), "Failed test for rte_cryptodev_configure: " -- 2.17.1