From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0069.outbound.protection.outlook.com [104.47.0.69]) by dpdk.org (Postfix) with ESMTP id 54CC01B8BE for ; Thu, 5 Jul 2018 13:30:46 +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=KrQTdKbmG1dxhqaAApilwU377r3L7nmU3OBtpIMNF/s=; b=unDmP8V8R8pNfC+HKGMWeVdguKu+8k6fgW0OvAs4Q0P9ttBaPA/+GoT591YwTJ/J+3rXKq3+skKkK2MlqnHOyW6odvRpIdUb8vIynoc3bBMMcIVFWcy2k0b2H6L8pySNdQydwrMuJGo/s3Bp+Xvsd3u1nYx7HAi8DlevNnhJQL8= Received: from [10.232.134.144] (14.142.187.166) by HE1PR04MB1385.eurprd04.prod.outlook.com (2a01:111:e400:535b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.26; Thu, 5 Jul 2018 11:30:40 +0000 To: "Verma, Shally" , Pablo de Lara , "declan.doherty@intel.com" , "ravi1.kumar@amd.com" , "Jacob, Jerin" , "roy.fan.zhang@intel.com" , "fiona.trahe@intel.com" , "tdu@semihalf.com" , "jianjay.zhou@huawei.com" Cc: "dev@dpdk.org" References: <20180608220234.10170-1-pablo.de.lara.guarch@intel.com> <20180705020805.38308-1-pablo.de.lara.guarch@intel.com> <20180705020805.38308-5-pablo.de.lara.guarch@intel.com> From: Akhil Goyal Message-ID: Date: Thu, 5 Jul 2018 17:00:25 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: PN1PR01CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:1::11) To HE1PR04MB1385.eurprd04.prod.outlook.com (2a01:111:e400:535b::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f343378a-814b-48f7-0e52-08d5e26abdc6 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:HE1PR04MB1385; X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1385; 3:unK7RIR+rEv1N9xQsplMyCW6MLRG6d/dwE72F/A9mKnmH1Ym6fNrMOx23WmDJP2PvC8YukDDR6Lq3KIn5Z0FDX8PA0HLVztrKl2EFrGJtsua/ug7xyLwfJ7q56R+XaHImWqgdx73bTGFevmeLY5fTp3enJ7GefKXOSUJWYXwE90KF9NNXzSYk9DmNsFkXN6eizaiuxBoVFUvCBF5/iirBnRe4O10fkSpTBXEnluG7x2Jy4ozXHI4FGYTGpDuuvOe; 25:cFtzh1wB4E95bhyAoIEPB50fcZqpLKTEjUqrJFO9IH564VtYPwS4Lxdt3L06yoUdeS5/R+z22JfoqmoEPITIp1bAfKQtmihLLQDR6vlXD5x4xUhQ7YqshRwcUkh4KhlrTL1W/cCGlx5BX1QlPO4IhBf5aJVj/fanvNOLMVOqflIQD3gRVb4gTxWGdH18DneVBZ0/ncpt7Qwi1AcLLMJifMSuY/UgY+D8g0cpBH3kd9pctRo2b+ov/jWizh5XOrPvChlwkY2r2ihBu8YCkOI/4i5Tx983EIoH1A+UUZMo1ieGM/S8JmpkkugqUuYURxxJmlxWl8kgjT3mZDh8v/coTQ==; 31:wG0MoRZlR1UlSUkHetNU+Wrc5QoxRrqbVg0x3dcfh+m+LnnfDGCRwVsSvAXrBOR5jguBkoydnuxi9SZ5YQY+eolfvcvlLHX6awtmqEEw+nSsdYbBsxBrY6J86QBe+J3/gH12oMjInxnz9NSZlbKkbfCYWzmGMT1pfKbDuSDA8S1qusfV5S+R3drHsJVSv0jnIXt1ptcJa+bGJBmN2iLDBaIZPGFB0KUIWAFy8TzBjSA= X-MS-TrafficTypeDiagnostic: HE1PR04MB1385: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1385; 20:E33ONKN0RrOv92I/js54Q1XtwgOX1z5l4ND9RmsIcBpiRFux0BbfFSbyydIQX+ilRYGhhDG/5GQqehUAtctUXwsonamXWt/ow+dTYMI/JMpg+h4Ud2KJQgO7hNs4sqep1SypVPPMVVMVykfTh/31GeKYsqoqEaRDlzJB9uHOwP4bvBb2NS8GHKt6MoFkOmiAEB8uqCVyLCr3O1CJ6xddaytz4wOTxU8ZvnAG15C9uqPmLEs1TiUAKBkgD/j0NL7YKvxPxqUTkHq0bngyQvzqeUjSVDGcMGHn96pIdeu8XJxSdiDsPwrht9eOPjQGHftLZeiLMDZCS7LQ+aXnBf3vB0lsFOX6NPDW4obFhvZN825FhL6+UxXWuXghQcf4ZMCnoBdfEUnGeyLOvgy0GYHDIQ0kJ5xqvnh4Kkhm70XJ1DslOzQb9NEtrFfQyN25VirLVhJ+1SkOLADaP2nyQE/M1p7AVpOS/wIHdIVIVhU8jNgU5aaTRmjAeadaPz4axIH7; 4:pHTRWwXLlbB+HnvpXdtE2L3HW1kNSVtAZi+z97YGZoDO8Sgta+nEPxOiLK6008SWK9MgudQaIFbqtAFfmdVC83pnyQVLjFMG5JU4MvrkOa+v2X/qaat/HF2HZa5LLEdaNn4jK2rIX+PTdVWLldOhMM/Ff6dCgsFoomxlZm2BuOPgysNOU/Cn509Iks+JAuFZvkuOW7g2epX5xrL5qBJokln6DdcN3crplzi8NL1L4R2JrjwTtWfVv31h4FRScNkFW7Ql2+58UNi3/t+GmMG4i7BRc+w5c96sn4jL7YknPn2t2NwctS1fd8ANGsU6NAx7N/H9x6PHDUqzF5mcWXYONV7Cha0vv5cS0ud6w3gbHXIxJj2bwWl9YaZPB+AQ1tVhmCQC9bmWqo3YaVmNRioaz7uHua3yR9b/wNWGyWckxXA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(767451399110)(228905959029699)(50582790962513); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231280)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:HE1PR04MB1385; BCL:0; PCL:0; RULEID:; SRVR:HE1PR04MB1385; X-Forefront-PRVS: 0724FCD4CD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(136003)(396003)(39860400002)(346002)(366004)(376002)(13464003)(199004)(189003)(81166006)(6486002)(25786009)(8676002)(81156014)(8936002)(47776003)(7736002)(305945005)(229853002)(66066001)(230700001)(50466002)(36756003)(5660300001)(7416002)(68736007)(16526019)(65956001)(6116002)(2501003)(65806001)(5009440100003)(186003)(44832011)(31686004)(2906002)(76176011)(106356001)(105586002)(52146003)(3846002)(110136005)(16576012)(316002)(4326008)(2486003)(52116002)(23676004)(97736004)(53936002)(3260700006)(67846002)(956004)(6666003)(64126003)(476003)(6246003)(478600001)(2616005)(386003)(86362001)(65826007)(53546011)(486006)(26005)(11346002)(77096007)(31696002)(14444005)(2201001)(93886005)(55236004)(446003)(58126008)(110426005)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR04MB1385; H:[10.232.134.144]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nx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Dp/KQvJcaGVJRO72T3tWpmCi2vJLB6iLxgXPzeRNm1MfSMsmLxyh/m1Ea3kLEUupA+dVNhI1x1NpEFp6SC0lSjcMVVW X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2018 11:30:40.0429 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f343378a-814b-48f7-0e52-08d5e26abdc6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1385 Subject: Re: [dpdk-dev] [PATCH v5 04/16] test/crypto: limit number of sessions 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: , X-List-Received-Date: Thu, 05 Jul 2018 11:30:46 -0000 Hi Shally, On 7/5/2018 4:57 PM, Verma, Shally wrote: > >> -----Original Message----- >> From: Pablo de Lara [mailto:pablo.de.lara.guarch@intel.com] >> Sent: 05 July 2018 07:38 >> To: declan.doherty@intel.com; akhil.goyal@nxp.com; Verma, Shally ; ravi1.kumar@amd.com; Jacob, >> Jerin ; roy.fan.zhang@intel.com; fiona.trahe@intel.com; tdu@semihalf.com; >> jianjay.zhou@huawei.com >> Cc: dev@dpdk.org; Pablo de Lara >> Subject: [PATCH v5 04/16] test/crypto: limit number of sessions >> >> External Email >> >> Instead of using the maximum number of sessions >> allowed by the PMDs (which will change to unlimited most >> of the PMDs), limit the number to a small sufficient amount. >> >> Signed-off-by: Pablo de Lara >> Acked-by: Akhil Goyal >> --- >> test/test/test_cryptodev.c | 27 +++++++++++++++++++++------ >> 1 file changed, 21 insertions(+), 6 deletions(-) >> >> diff --git a/test/test/test_cryptodev.c b/test/test/test_cryptodev.c >> index 389f79677..5c906cfae 100644 >> --- a/test/test/test_cryptodev.c >> +++ b/test/test/test_cryptodev.c >> @@ -39,6 +39,7 @@ >> #include "test_cryptodev_hmac_test_vectors.h" >> >> #define VDEV_ARGS_SIZE 100 >> +#define MAX_NB_SESSIONS 4 >> >> static int gbl_driver_id; >> >> @@ -435,9 +436,16 @@ testsuite_setup(void) >> * Create mempool with maximum number of sessions * 2, >> * to include the session headers >> */ >> + if (info.sym.max_nb_sessions < MAX_NB_SESSIONS) { >> + RTE_LOG(ERR, USER1, "Device does not support " >> + "at least %u sessions\n", >> + MAX_NB_SESSIONS); >> + return TEST_FAILED; >> + } >> + > If info.sym.max_nb_sessions = 0, won't it fail from here? It is added in 8/16 of this series. Till this patch 0 is not a valid value. > Thanks > Shally >