From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0060.outbound.protection.outlook.com [104.47.41.60]) by dpdk.org (Postfix) with ESMTP id 77A473238 for ; Mon, 26 Sep 2016 13:05:06 +0200 (CEST) Received: from BY2PR03CA075.namprd03.prod.outlook.com (10.141.249.48) by DM2PR0301MB0719.namprd03.prod.outlook.com (10.160.97.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5; Mon, 26 Sep 2016 11:05:05 +0000 Received: from BY2FFO11FD039.protection.gbl (2a01:111:f400:7c0c::163) by BY2PR03CA075.outlook.office365.com (2a01:111:e400:2c5d::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5 via Frontend Transport; Mon, 26 Sep 2016 11:05:04 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com;nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD039.mail.protection.outlook.com (10.1.14.224) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.629.5 via Frontend Transport; Mon, 26 Sep 2016 11:05:03 +0000 Received: from netperf2.ap.freescale.net ([10.232.133.164]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u8QB4waH005049; Mon, 26 Sep 2016 04:05:01 -0700 From: To: CC: Akhil Goyal Date: Mon, 26 Sep 2016 22:02:59 +0530 Message-ID: <20160926163300.22990-2-akhil.goyal@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160926163300.22990-1-akhil.goyal@nxp.com> References: <20160926163300.22990-1-akhil.goyal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131193615039142979; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(2876002)(85426001)(68736007)(86152002)(33646002)(19580395003)(626004)(19580405001)(106466001)(36756003)(5660300001)(92566002)(2950100002)(1076002)(86362001)(8936002)(2906002)(104016004)(4326007)(97736004)(50226002)(6916009)(110136003)(105606002)(2351001)(81166006)(229853001)(87936001)(586003)(76176999)(50466002)(47776003)(50986999)(8666005)(356003)(48376002)(77096005)(7846002)(189998001)(5003940100001)(81156014)(8676002)(305945005)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0301MB0719; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD039; 1:gIe1yotRAHAGep+CgIIjv8Pvf2d61oIAMA4M0/rk/Pvi8YIIf31raHgFG03iYMAobWxNWqU6mttsS3UZS5yFBce9H042YfplSL0d/IomGAjrne/RzWwkYF3josOAdbaLIJDg51x7BDLD2p4RVLOBFZzAhn4Ky2JB45B7xDGPwbCspLwIhea24mhXUoiC0rH7NuNY7t4kUA7ek8S3sF5GID7EP3l/gLSglhQOOeqlIQzKL04VozokVqItEYDsAojmMZrKytUOloOYphNFG5wMERbZYF/vsVT2QMknJGemUH5XiIXCwCks33Tktgxrvq3cfVrLxvucEx4AOeZHyWgC+cpRe3jmx26T/z2Uuwx3IjlrP7+zQogiz3ycSq5dqQcTwiRHuXyCXNsq1d0RJN7MSFpIo/E7wkgq+ppQ+lUw3sd/XQdnAdPn6RypLYheTBmDURMqD21DVpAzaSkWd8tPIHMQgn01c07ueoAWSTWY+30IIuufuRl5juu24RQKLJDDlTGKXyHM++NcoaEW4Rxaq+Dl7nGO6iRHG5cDO3xa9ShsWPXiVK+cliagSgbiFuX/9Ryn2WsXs/+L2DgezXojJkNchoLOqJEi5I9eKNf9bYt4mYOsdTFWhxVYXadkXo1nALDm4s1CcoCrmL0Mrsr+QlSilxfxcSGoeLO7xqnanZQmOi9vyWkXslxb8oj/XEGLF1ys2ic7iMh6RGJ+PCLtyMVrzip94YlhqzgS8dN7s74= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 66fc8253-b0ce-49ac-1c43-08d3e5fcf7ac X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0719; 2:SOgsg1Kx+3fHylRSgAHh6TO6moluOxhG+TIRDABPN+G3RBl3Jts8naJEPUVZ0da33uL2cSeeMeexORtvZOoxsgQcHR0KEnJ2dvtUfutAd7/ATBn+im+OKbPlJhjwKhCRpCiZaFLGPWDvkywqBs0LRwEqflXwWtCzBHfPS/3i4xkZ/fk73CrTjhf0RAhop6zg; 3:ExBxMSAyQky3d5Nz3X8QlPIbxktMFDVOAXnKU9kcx1fXV8IvBMUqiMrnMDaYo1gpovEVecQhoQ+gwZAWrPTdY6DdZOp3UPEV7KLYw+eC+TJ+nk/IiYQGRFIisu1fxqE7kpJoYjBEbwS9JIxfd9UkYKZ869c/vpr/xCtSWqe4fDkApK0HEyZ1Ld9EtrgzCLekOj1kQAuu49XI3J5VIkdXo3pm2ERcbNwwE7Jp70IrDBw= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0719; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0719; 25:QbYTi5St0SAWQ7BTxpA+GZTHMlVnGRVcNCSF5HZuwJZS3GJ4M44OkDAG5s+hcJBzEIhKKzFNMMNYiO8RfIYS38kNA+LDF3bLRBiMySiaWQBnvGb0nDe3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7MTMzAnsNYycj9KGoa8S7CjCLWL9nJR9WngeJJlkE68wLQxMUylHnDHRiAVnIG44WL5kFZQkKydenIs9JR7WSVrLoHnWc6sCr5RmtGxvg89/hrB0s32H6rM3cCofPKuqisYV9oMM2kgL/1AP3/NsvQF4UeR1Esm0FUc95X0F7TL/TFrq5co4QtGUNFafpLHiR24topIVRHVodkOC4Rt+tAXxiAFnsPEVBRmRrIsiHx76T2OSCR9MwaSx4cuRUSVePpxh6UuYIC6KFWwqMRmaXuRW/NyGFrfXnveScw4zcvD/C2ictkHxYTd4/6eyeHQalU/xdImThMd6qHoKWzGGd0Vn0/NViIhhM4y8QtHhlnz0nBKjkJ6Vynhb5vlz8bW6dn82RZeu7J+Utg0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13023025)(13018025)(13017025)(13015025)(13024025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:DM2PR0301MB0719; BCL:0; PCL:0; RULEID:(400006); SRVR:DM2PR0301MB0719; X-Forefront-PRVS: 00770C4423 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB0719; 23:9239Txkvpv1h3Og4/1nbSZ1ns2DJrQJ9mMoowYO?= =?us-ascii?Q?zuvFKD024izugyPrhm1uSwyNkBnLOVoFBZQm/P8ZxXwM8qIdLraLa12AO6eW?= =?us-ascii?Q?yWEIfV4Sbtz6HHk2StXTsqahGkBrS92X3Driy2mvhZuuIiw20aKtn7qOcBGI?= =?us-ascii?Q?2RaogKi11tx12wGov5F2v3XQ6EGIbTczdxMZYVvwNaR4U+C1/u8C8B1CDKz5?= =?us-ascii?Q?nHa2DHWop/SkegcuccovEoLdic0mPh2ADm3sj+jto/B8IYSxiSdusmbN4Ofy?= =?us-ascii?Q?RIMPnmZw/zN0Pq10Y9kWgHwxm8NKaBa6OFSK4rY+VsTZJxgnjuOtqrkm3SB8?= =?us-ascii?Q?/zIY9FU+lf4MzJumlCVabemAVSew8EE9nDADDZqBpPyrk738JGuNXbZ1yKb5?= =?us-ascii?Q?PXSky2OFywkty5XLXJDoXbxMtReS2ZY5vvHhhSu1oW6S91cbZKhjGKsSq4qz?= =?us-ascii?Q?FgmS9VlYYlwhDaxFEREc7eDDmHAoN04f4oWpGmBoQOdcLHm5RngUyAPgooux?= =?us-ascii?Q?mfk5viJruU6vSA99d2XDCXb6/su3bk3k3ojpIsugYgxDuadfGeyXrKk4Rsip?= =?us-ascii?Q?V2lSoXO7Fw8bO3FW/cF00va8qbpnEn8wknSSOMkk068Dws28/9zk7HHsqxBY?= =?us-ascii?Q?gbM+LJk3hObDuevYLnoaBHUmDOhbNcA3vR87OCUWMKfqy4QPujN9b22jYa6n?= =?us-ascii?Q?pdPf4HqNfIrffK2nFao+1TUUnNxGBYf0NHR0kO3Mt1UdsdxOl8AI1+291maU?= =?us-ascii?Q?khuF1d9XOlK6r80Q12yGK0ZaQFgqY4HZzNAf9ylR7wyobmD3mKV78vLM1JnX?= =?us-ascii?Q?Lh0cITz0RSpUXuTWsUBrroXviHxCRO3wXRe0QV2k9zJnWb9pb51B+Ah/v5Wl?= =?us-ascii?Q?dg1Di69a99k0enGvU4s9ILAojfLeAiQ2vWVHNhbz9cKu/vQpafc/bTtxD4CR?= =?us-ascii?Q?0sVtZZ0ytmRpbetnWOIfwfuNRE4Vdf310XpNbLyNJBwgVTkmzMjptFgvXaHz?= =?us-ascii?Q?WKRTPdQCBMdEzW8Lw34RK22yyqepBe8JZTCETiqpdl12zq3/WEobQH3TTreb?= =?us-ascii?Q?mZZBCQqLQGK6cJkF0MSZiB/GFI64mIKZWfvX71lENzC4vkFjAtuLT5dACqwe?= =?us-ascii?Q?aKnctk0s1vogfC7PVmCd5xIIXgyvsdaHdxyYWhc9neDq76oX8AJammz8uIgH?= =?us-ascii?Q?dmwsRqLlnl0tTBH1HSBblgZ9uAeWN5va+EsY6S0v07SDgZ7HbVaLLGJ2lkA?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0719; 6:skYroIN0tMq4nP/tvP5LPRax8Jn2+7qD2vh1qPN8EQbzPQQAgm3iMAss74BWc46zTIPuHL3Mxqvk89FkSf3vE7aLQ53vQKarnS5ufreM0UjHG9mJY15iHtPSencQAsAyubCCfTXECWspbKusnbCdQzwyOTohYyAT2bLo6FQbdJ3m0Rgx44uELun7n4Ygk4PfqcFiLyH0Dicv3RKB05XyIZFYOHgAiA4MV9WRatLhMk//jGco0qtkOJDZUfM9COT8S0svxaZ+S1c4grlAcJC3OHcQa+1l4xdt7mJRGTPhpH0=; 5:KQUOzKK9OItKeWLh/9oWFI6X7lT62D3NiWZYUOsGDE0Dkm911uALg460L8nkIMZk6KcorH//Vy+wrFksfufQ+vX/vOkKXAQjDS0n0JatARqIozGDAr9cyTXI4v153Omwum5AnJJgVQhfROZFKJn6nyacYkudXLt4MnP1aAGobV4=; 24:DXL/8+k4VA05e2AsgXbzA23n3dyy7xCpWDbLQ4vRgANddn0oDPVcXFKqRXSo0mBdlv/w0rn8kH6BcL8CtMbwEuML60BbOB2lgSuW8czl0jg=; 7:rqp36K6tQq6g94rxrYgm7CN64/DdKamoBiEcNh6Ch48QDKhTYaInX4C5Q6runbfzAL7vC2lR8LO5We4AjJEMMuvHuPVk43khH4f4ySzT45X+bEFPouph0WF8wxzCzQvs3oPTzCzlG62olmbnj4zFaBepPuiLgZLI3UDX8cbmGIUdQenbbq5w58oET304Z+7Qc8/0vx2bnnGr3ZyJNN9g8RVr8bG3bu3rqE5Kj/Mc2w7SKXedND3oYP4GNLIJoIhtHVnMRTOdNiplsgrt2nHIDpZxvztnmbTkBwOD0f2rsSDBx8PabT2GUGTszwiFy7Gb SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2016 11:05:03.0408 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB0719 Subject: [dpdk-dev] [PATCH] app/test: Remove hard coding for nb_queue_pairs in test_cryptodev X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2016 11:05:07 -0000 From: Akhil Goyal nb_queue_pairs should not be hard coded with device specific number. It should be retrieved from the device infos. Also in ut_setup, ts_params->conf.nb_queue_pairs is already set in testsuite_setup and we are not modifying it. Signed-off-by: Akhil Goyal --- app/test/test_cryptodev.c | 1 - app/test/test_cryptodev_perf.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 647787d..12b6b04 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -338,7 +338,6 @@ ut_setup(void) memset(ut_params, 0, sizeof(*ut_params)); /* Reconfigure device to default parameters */ - ts_params->conf.nb_queue_pairs = DEFAULT_NUM_QPS_PER_QAT_DEVICE; ts_params->conf.socket_id = SOCKET_ID_ANY; ts_params->conf.session_mp.nb_objs = (gbl_cryptodev_type == RTE_CRYPTODEV_QAT_SYM_PMD) ? diff --git a/app/test/test_cryptodev_perf.c b/app/test/test_cryptodev_perf.c index 2398d84..0ea7ec1 100644 --- a/app/test/test_cryptodev_perf.c +++ b/app/test/test_cryptodev_perf.c @@ -301,7 +301,7 @@ testsuite_setup(void) rte_cryptodev_info_get(ts_params->dev_id, &info); - ts_params->conf.nb_queue_pairs = DEFAULT_NUM_QPS_PER_QAT_DEVICE; + ts_params->conf.nb_queue_pairs = info.max_nb_queue_pairs; ts_params->conf.socket_id = SOCKET_ID_ANY; ts_params->conf.session_mp.nb_objs = info.sym.max_nb_sessions; -- 1.9.1