From patchwork Wed Jul 4 09:49:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 141049 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp599825ljj; Wed, 4 Jul 2018 02:51:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcPafvFS4g4GEEFnEznIsXWbmcBx1+QMG+fAXQpSQB3QFRffQQx+gwDaQa9O0P32wJUWT40 X-Received: by 2002:adf:ed52:: with SMTP id u18-v6mr1030732wro.262.1530697874780; Wed, 04 Jul 2018 02:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530697874; cv=none; d=google.com; s=arc-20160816; b=UwK0GyBIp/kMRImM6vyqfyVCMyL96ujSjTXs+Tr+AjZhChEWso0bUT19SvndorUli4 PiRktBgry4Pjvr/bUey8xjq5B1iBMWt84+sqwDfKEdR2KiD/TENNOf98l11sUY6kbhwu n5rUgXyAJveoQm1cfDUvO8rCc49SNk1Tj6X2cQY4Sx0yRKaVt+60nnVuL/IP8225mSQJ BLnXOgOKrLoDW8+JATK6takMXkb4+iuIKUIKKGCkymnSVhQzmDRJrbdd9f0e7fRGb+7r /NIATAACaZo0Hw39ngEHpSIOzw9uS54RUyAdxnrs4fpUXfVdmf6/5bahT2vs74LkLnTf /aGQ== 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:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:cc:to:from :dkim-signature:arc-authentication-results; bh=O94f7DPG88pHgBjQWW3t6CMg8WTTaip2yeS8QnWqfSg=; b=ys06nwA/2vNr7MvVivbnVvHRvB3gCYjrYQd68YtbwkPHM0QwAiRDy/uqByrR7y7Jy+ Ma4mnfGknc/2uLpauIQoeR1ARMmbLpCyBgpOTminhK3TyYDzMdI7GYAm37ptUEA30+TD kayaXrdVnjsgA+vgc3mBa4NbxMM1M86kSkWH2IJuwD8IbcHb3JRUd+e6tXMfRVbaskjm R1vB6YNV3CyRZJETDZZ2zHVPvtXAHfdmKuaPeY7Mz3huMSB65dqZTprdYsaGm6y+7Esc gsyubrbZYk1VU51eRPNGcyxquFnXb6oPHAa434acMd+UmcJTdXlJGU6fKRv12hmdJQju apmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=MQ4VAoTO; 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 v130-v6si2440284wmd.151.2018.07.04.02.51.14; Wed, 04 Jul 2018 02:51:14 -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; dkim=fail header.i=@nxp.com header.s=selector1 header.b=MQ4VAoTO; 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 AC59B1BE5A; Wed, 4 Jul 2018 11:51:13 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60047.outbound.protection.outlook.com [40.107.6.47]) by dpdk.org (Postfix) with ESMTP id 534B51B5A8; Wed, 4 Jul 2018 11:51:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=O94f7DPG88pHgBjQWW3t6CMg8WTTaip2yeS8QnWqfSg=; b=MQ4VAoTOGgiUxDLjBrUaP/npva275FJQk2PUmACL2WIemsOQK/83Hb5cpERgU75avDYETOLZJ3cUpzVvZ1pBYPDH0+KVlC+k44qRFrHv1RUs7GEhwrIPXDKkMSBR2IosrvclkS4ii5jj0evR4DU+f+hyJKiOWfmMip+1BVWYaSM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by DB4PR04MB0766.eurprd04.prod.outlook.com (2a01:111:e400:984d::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.18; Wed, 4 Jul 2018 09:51:10 +0000 From: Hemant Agrawal To: pablo.de.lara.guarch@intel.com Cc: dev@dpdk.org, stable@dpdk.org, declan.doherty@intel.com Date: Wed, 4 Jul 2018 15:19:38 +0530 Message-Id: <1530697778-1598-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0067.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::29) To DB4PR04MB0766.eurprd04.prod.outlook.com (2a01:111:e400:984d::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 14e40753-b9db-45dd-f5fc-08d5e193ac6e X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(48565401081)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:DB4PR04MB0766; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0766; 3:1nandKGfiB2ba7SrPV+BDIw0zwtdDb8QEVvVeXfnmF+PfRyaU60K166NawC+V+9L2bFayCoIYU72IF1ctWJm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Ssm7F+cq8BQuWAPk0cYlx0myGgzvDCjLHl0O2oXyC5BUAL/OY2vZYXA4GdN6wP4aiHnc654sNEvBbN4dht6UaSNrLyJLMME0SObLxJse83Xf1MlsstSFlSAv3Q+rndJbYq2aoY50S1mm+KynGzsuLgJAd1F3lDVa19v3ycKTLYjlJ9HlSnFgtaCYAEyiEBXBDH4gkRzd5HjqIgbfUuKsqEMfMARtVaDAqSLkkwyyGceA56Gee7P9EsZez19AR39NW0kb; 4:efZR/HssWmuUoskqEC9LzAKXVVy+bb13vUn7O6Woy3SFvE/nXxh5Zcd72nH1ISRS9PHy0AQFjAEqHUkght0iKO8Njoh23ve5tbYGcUyZZFuK4/u6uwdOVtus7x5Q7j8FtouKj69mbf7cIzmyqO/eQH43yrJaXrm735UPXihmbdeC3AV0+1xtKN/60DCm37KJ2euftSCG7/7KZwuQND/UrTgcLrShwbMOEmIt1fuoX3h9ky5q0meesDzHtzUfz0rHrufYGnPU2rS0nVHqtIZMAHQfU5lTE4LNHuvezX/3mQEBt8ewj+xsQsLGCLYeAoJdxRhep7mz8UuPa2AOGrPDNfRrlRoxrIYy8V/5FKCNBCo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231254)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:DB4PR04MB0766; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB0766; X-Forefront-PRVS: 0723A02764 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(136003)(39860400002)(366004)(376002)(396003)(346002)(199004)(189003)(3846002)(8936002)(6486002)(48376002)(50466002)(6666003)(6916009)(305945005)(5660300001)(7736002)(316002)(16586007)(86362001)(4326008)(14444005)(25786009)(5009440100003)(36756003)(97736004)(2906002)(2616005)(956004)(486006)(476003)(47776003)(68736007)(1857600001)(186003)(26005)(50226002)(16526019)(51416003)(44832011)(52116002)(53936002)(478600001)(55236004)(2361001)(66066001)(81166006)(386003)(105586002)(106356001)(81156014)(2351001)(6506007)(8676002)(6116002)(6512007)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB0766; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB4PR04MB0766; 23:KqsnpJjjASEr2fRXEv8oYwvFQyVk6MvimOsew6LsP?= GcwuUU6gmJ78hyUQ4xNzeo/PNDD+EcYkBAjOr5v/d9013O3FL9d+6gwzyl5GK/eQm/1j53fLVv2965x/5gn0nVAzZ/+K2TT42JG0DKBezbkKn71v5DIy1QCjnreMsctX2XKQKBLevU2iscwQhGYmApO5+1VKt7w3XQHSaEaXikOEfnxT1oNXQhD0d69+KBTHtjFrh1xHT5UWv6oJpt+H0zWXLGSaiXgUPt3dwMsvuEtIAFl7jgUSsldDr3nJWw+IMrq7QcEwJSQs9R8ggpk4g0OyGp7Dh1oGz4n7/6bQUbmd8HLONmopwHVUzlhnGw/JgCRM8RBY2z3x/FC7gr/AScrDP1IYy+O27jdzDnz2XJkbCUW5ysdUnUOhh1wKVVsKPL7WXfifhQCTGaffm3kj76I3lITuJFOy40eA5AclU5bHLfHCY42k1gj7csH77YBlUopkyh93Zwa/QjDObFTOY0xNUSghCehZdIttW4mMRnLR2kBGUlX49/SKpJsxTp3mLD1/ih89n6yQk4Va2JaECcR5YkeV9FfC/dP5qokAQZOtuPdWNH98st9YnQyDoZ2HZ6XcV5m4tKseyaKwYgT6ssv82xlxarT3nWjIk1EmTFe++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AQ9Z1 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2018 09:51:10.2969 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 14e40753-b9db-45dd-f5fc-08d5e193ac6e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB0766 Subject: [dpdk-dev] [PATCH] test/crypto: fix the devid testcases 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" devid 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") Cc: stable@dpdk.org Cc: declan.doherty@intel.com Signed-off-by: Hemant Agrawal --- test/test/test_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 Acked-by: Pablo de Lara diff --git a/test/test/test_cryptodev.c b/test/test/test_cryptodev.c index 389f796..e252fee 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: "