From patchwork Mon Apr 2 15:33:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132661 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2710398ljb; Mon, 2 Apr 2018 08:35:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/bxjBgIkHRbasoDYNHnCGY4aF/WAu1czZvU2aDrSM36nGAU3Mhu+VFdZU3bLtD3bEwi0zP X-Received: by 10.28.126.69 with SMTP id z66mr1216251wmc.56.1522683344668; Mon, 02 Apr 2018 08:35:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522683344; cv=none; d=google.com; s=arc-20160816; b=pFSvCFOgM1iR1+PdKMFPJql/DZoQwm4Q/e9Mq5Hx/lkuToUXBLyxu/IQU5mTbXtcDC k1OVTKnPpbfetw3tf2MCIQNnogFvtr2VIuiz8TxhYXSUBTdgsx6mZDmvRJiAOeNCgibU vZ2mfMl6p9mEHXLLle9wfls4vcc/M5OBZRjjJpKgyJqEPzNHWOUZvdy1Nw+KqOG4Lxmz x1hv7WGZonOnwn8BwYOvlS1KAOdAs/pQr10U3Ff8pmIkt8tmKe1OAt/YNpT/p52CJejG CMJbccklw27lRJPQkmTco+yIqRyjfx+sPBjkYmEiYYkn4HDJO681I6Bm1DDbldwiJGFI er2g== 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:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=mYGAajbpG9ajHjtwBbdHR8y119LcolMmSZzhhSSzAyE=; b=sTWHvu5lw1UpElVCrKp1sqGFbcRD++zitC5rl4S1yKbIedcQ+KceQD+d6QR18MtPS2 hbIJNjyywUsKonHnZT62C29OctaoJVG/ZvaVL/ffDLIMqxM35Mp0B0jPJ4g2H/KUUXUB akEoyrrfEq/nsr2QoyyRYf5TIej1q8oMZ9V4bmLZxcQsNVJgBLUUrnlkmsWR/M9yTm+V ZDo4QXXF6fPwN1plbxnhirnSQc0LcBjnqDcYkZQBnHigBGPLRZi1XreayJANoDM4blwu 42w1+qXqnGHpDiJTrMn+HifNwOnJ8Ce97ihPyYMI1dcUu4bfT5/vPwi1Q5c0jyFfd63Z QvcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=HzOxcwWC; 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 r12si511140wmc.134.2018.04.02.08.35.44; Mon, 02 Apr 2018 08:35:44 -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=HzOxcwWC; 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 4829D1B1AB; Mon, 2 Apr 2018 17:35:25 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0088.outbound.protection.outlook.com [104.47.0.88]) by dpdk.org (Postfix) with ESMTP id 736F31B04C for ; Mon, 2 Apr 2018 17:35:21 +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; bh=mYGAajbpG9ajHjtwBbdHR8y119LcolMmSZzhhSSzAyE=; b=HzOxcwWCc62Z0XNZSdCzutGU07kl8mI5tTRlHBgNMNuXUAdB0RX6FnI3hqGkvjmtQL3+6QQF0vEcnkcm7eeuwiogh0y72OwWTp1wBOvo53HaIkayMITkDWfs3R1q+inXE3jQbEtLeN7WoQaN7jQtggm0/7kbDTeR78Wo0/pjWYs= 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 DB4PR04MB0767.eurprd04.prod.outlook.com (2a01:111:e400:984d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Mon, 2 Apr 2018 15:35:18 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com, dpdk-up@NXP1.onmicrosoft.com Date: Mon, 2 Apr 2018 21:03:15 +0530 Message-Id: <1522683201-23963-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522683201-23963-1-git-send-email-hemant.agrawal@nxp.com> References: <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> <1522683201-23963-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR01CA0090.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00::30) To DB4PR04MB0767.eurprd04.prod.outlook.com (2a01:111:e400:984d::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1e15f5e9-61c4-4a12-1be4-08d598af577c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB4PR04MB0767; X-Microsoft-Exchange-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9zuaqM7OBVAot3RQQhujomxfmtAqfBgX2LXtz3cnSWuR82wzzzVWz9NkIA3h4dUu7yYFQR3w/b5YZRsegE7Cjc4pwc4+BGUeTQOhOEDNsMck6dwaY6CRM9fRVOFRVE4/YA5ZHKlgJ3EzgUBHdh/2901HqrJj70Cdi5SWDeSoJBOO52suVWdw4edtYgCIq8SE4hgSBlHGJr7S0y2ldINvqTQnYOVL/9u/5nc3/Sw4YZhpFi9Jyw1iBXsKk/hWmtxM+CnO3+Bt0hN3EEt4lD/kAIfy9yVWafCBB7k3RPtpATSzEINVmdooPOSoPrMf9q1cpTqckbCi6AwiadHqbN6U7N8eU8e+IJf1Tjsd1/MjjEvh4b6fu9rnq; 4:cWXe0qyvjgBOkG26Qv5NqUaRJBw7QLZ4BOz8oR8fww9+pQ0RiyLNs7+8PRu8MpjNzgUp6CFvKPHEf4dIZsiJpl0Qn76MhkRQImaDtVmTVmhUMOveJcs9XnpG0DvI5wSmacwX8ZkKsEOVWp/ZOJEhJvCoyihyNe0W2VQwY0yflFEW/9qNJeCdKgc05YHCeZxxgYX3GMZIxuD/E29i74cSMlj+y0Okx7krERmV32Gpv9HlKXVdr5N8P1T0ilPWugaj8lI7HoD7G1hd9UXJTKH9dNQqHYNFf/O7O3AaF4/8TGysGucMOXdsRinr1PCbkZISgG1PCsZNmLb92gvoFZEBjT6mHmnxMKoLc7qhGU5yySk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231221)(944501327)(52105095)(6055026)(6041310)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:DB4PR04MB0767; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB0767; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39380400002)(39860400002)(346002)(366004)(396003)(199004)(189003)(16586007)(16526019)(86362001)(6486002)(50466002)(76176011)(186003)(48376002)(2906002)(6512007)(55236004)(47776003)(2351001)(5660300001)(73566003)(6506007)(386003)(97736004)(2361001)(52116002)(51416003)(305945005)(105586002)(486005)(7736002)(81166006)(5009440100003)(26005)(8936002)(3846002)(53936002)(36756003)(107886003)(476003)(6666003)(6916009)(25786009)(316002)(4326008)(6116002)(66066001)(478600001)(956004)(8676002)(106356001)(50226002)(68736007)(11346002)(446003)(81156014)(2616005)(486005)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB0767; 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; DB4PR04MB0767; 23:yksH3IsQQPNaCjqaF8jpKR7Xrv25E5Y9cdg7hYYRJ?= 6ezlXspjDm+bMVUyscST4oTXrGdfsH5QSrj6SvcUuuj4k9j3b33UT5WDCmMye1ETUYQ3MoBUV+xQs/TLRZ78NTaX7UGRns4MXjfj+iDlmK619nADgoqmzYu94iOLc9TBbaO1KNBtxd7tnQD60wgTaM9vRiMHGPnqxnyDI2VKrqZH9ryqYjvoc0SvUcPGym3/6+c2mhTMVEPV0f1QbgJYmJwLtZokUbv5R0Echa1uHX8BJV2NUFr1UsnsNOkr1T+gDuKQodKtoI7HQvvJ7s4K1DnygsovXKzSAIyCF9FsjaiufOZ777CjgjmCFRs+PPve/68DtXf+OrEajDNC5RA0V682nhJruwxddCaMblA+VjWnKpLLp/x/r8T3lCp7KXhmQr1HQQQdhzhpkn0DGvMC38i7hCTVo0Z0xuNaNpShP/jSW5A1pnfm2HNQJxxuepppgjbAdJ/WHhZxg5iumvhSyHt+VRZLAEc0UiH1+gaWXMfp0eEmE6T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-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 15:35:18.5992 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1e15f5e9-61c4-4a12-1be4-08d598af577c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB0767 Subject: [dpdk-dev] [PATCH v3 2/8] app/crypto-perf: fix excess crypto device error 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" If number of available devices are more than logical core, no need to through an error. Just use the less number of devices. Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal Acked-by: Pablo de Lara --- app/test-crypto-perf/main.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) -- 2.7.4 diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c index 019d835..dd666f4 100644 --- a/app/test-crypto-perf/main.c +++ b/app/test-crypto-perf/main.c @@ -80,12 +80,9 @@ cperf_initialize_cryptodev(struct cperf_options *opts, uint8_t *enabled_cdevs, nb_lcores = rte_lcore_count() - 1; - if (enabled_cdev_count > nb_lcores) { - printf("Number of capable crypto devices (%d) " - "has to be less or equal to number of slave " - "cores (%d)\n", enabled_cdev_count, nb_lcores); - return -EINVAL; - } + /* Use less number of devices, if more area available than cores.*/ + if (enabled_cdev_count > nb_lcores) + enabled_cdev_count = nb_lcores; /* Create a mempool shared by all the devices */ uint32_t max_sess_size = 0, sess_size;