From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C8093A052B; Thu, 30 Jul 2020 13:21:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A7DEB1C00D; Thu, 30 Jul 2020 13:21:23 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 473EC1023; Thu, 30 Jul 2020 13:21:22 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06UBHPRg020802; Thu, 30 Jul 2020 04:21:21 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=RPv/aitCvdYQJbSJodsr1L17J+FyMteNZ3Ar/WKxPdw=; b=JzPlgHph5rHwnQKJcRFQPpcfhpnFRaocgarJTCfXukLl5zaNV5w7O6r9O/YHfVXDGR7f 0vfO65OBjq1ZlQw7uf4/0dzXWijXwRLaeBNjz+2u+KHhnUBekSEdn6u4QBk1UdgDOckE Mvj+63UPmhTFxzjZzl1CKZ/t+A6VzF1+QWKw7g/SWOX5Jjrzo2toTG4HdrVvufntMN2y DUTFCVOu+pFZYo1rMLJX2IqaNV2qiT9in93g32vSAdkEz0mEiiwYx87ExlcOZ2Z1gSNZ 1TQgKMee9weZ8Ceq98EcASjnw51DwEroFbS6ijZQyHL0jD4BYm2/oIhSlpOvTqe3uaM6 mg== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 32jt0syvfx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 30 Jul 2020 04:21:21 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 30 Jul 2020 04:21:19 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 30 Jul 2020 04:21:18 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 30 Jul 2020 04:21:18 -0700 Received: from hyd1349.t110.caveonetworks.com (unknown [10.29.45.13]) by maili.marvell.com (Postfix) with ESMTP id A822D3F7048; Thu, 30 Jul 2020 04:21:16 -0700 (PDT) From: Ankur Dwivedi To: CC: , , , Ankur Dwivedi , Date: Thu, 30 Jul 2020 16:50:17 +0530 Message-ID: <1596108017-7692-1-git-send-email-adwivedi@marvell.com> X-Mailer: git-send-email 1.9.3 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-07-30_09:2020-07-30, 2020-07-30 signatures=0 Subject: [dpdk-dev] [PATCH] test/crypto: fix device number 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" In testsuite_setup(), ts_params is configured for first valid device. The same device should be used as valid device in test_device_configure_invalid_dev_id test case. Fixes: 202d375c60bc ("app/test: add cryptodev unit and performance tests") Cc: stable@dpdk.org Signed-off-by: Ankur Dwivedi --- app/test/test_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 70bf6fe..c3e4649 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -755,7 +755,7 @@ struct crypto_unittest_params { "Need at least %d devices for test", 1); /* valid dev_id values */ - dev_id = ts_params->valid_devs[ts_params->valid_dev_count - 1]; + dev_id = ts_params->valid_devs[0]; /* Stop the device in case it's started so it can be configured */ rte_cryptodev_stop(dev_id); -- 1.9.3