From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 8934423A for ; Sun, 6 May 2018 08:37:25 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 3894121AF0; Sun, 6 May 2018 02:37:25 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 06 May 2018 02:37:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=8eV25ZTfNhBnAa+Y9 c33F6x2rOT35EBM37T6TkowFAk=; b=FSy32txBCgytn4tKpo4AS8+08Q6LXkEgu Fa5bV0bLtr1Hnb7zi/hzZNCOMLGrwIbsrn/MUIIy9pURZjYr2seo+SHDVUiHjt/q vFntlqsC1ewF3281hwhuQnFpsKO+LViHn7gTNS4d47H/xMJnvx/87gp3VrolGgO9 IzZKlf6kEwepKx0OZPWMnFGJwSiW53yHpWfhHcr+00syN86aBDaLE45ZHkiZ8ev9 sVRVKEHWHbrHJFalrcS8nACx8zKfYZXIBH1m98ts1jHFUXviT6T5kZfjJ4B5tJZj UHDzzbOfOsB982tlgD1QQkVNlI3yp9iws2llBboAL8wK0YELLUJIA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=8eV25ZTfNhBnAa+Y9c33F6x2rOT35EBM37T6TkowFAk=; b=jDO/Vs0B yr/CST3K5WBdMFppT1W2tRDeP1l2GoRcBsN6BLjhEmNF6GOCryrffu1W3Ty4bb8Z s765+skQbloWQQP6mxGDEnR9rNwONFmb4z56oDaDwCWwVp0FVCVJyr1BYNM08t3B edDNQ4h89yqF2Bzonp/lvvhIR8Bon2Dnu2k1C9TVIiRucKO60voHood3uXh3uz1f 8p85nht6PISsMlwuhOrYPIY0rVk4+6e9xQK+KoP4rPsRDT4ikdY+UsNWRnPEbRMY /AL8MaH4yESzNFLSQMoSyhEdCoDzJgTZsoRTK4bJ9zeFMI9xecMlG47cKNWSM8Sh y1cZ1PFRi4BzhQ== X-ME-Sender: Received: from yuanhanliu-NB0.tencent.com (unknown [223.74.148.102]) by mail.messagingengine.com (Postfix) with ESMTPA id 5AC7710253; Sun, 6 May 2018 02:37:23 -0400 (EDT) From: Yuanhan Liu To: Hemant Agrawal Cc: Pablo de Lara , dpdk stable Date: Sun, 6 May 2018 14:36:16 +0800 Message-Id: <20180506063639.23196-3-yliu@fridaylinux.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180506063639.23196-1-yliu@fridaylinux.org> References: <20180506063639.23196-1-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'app/crypto-perf: fix excess crypto device error' has been queued to LTS release 17.11.3 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2018 06:37:25 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/09/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 6a1c07537dc657043e2f4e0480918e632587bcda Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Mon, 2 Apr 2018 21:03:15 +0530 Subject: [PATCH] app/crypto-perf: fix excess crypto device error [ upstream commit dc476f122d9d80173a3b2b68870dc9f334f296c3 ] If number of available devices are more than logical core, there is no need to throw an error. Just use the less number of devices instead. Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application") Signed-off-by: Hemant Agrawal Acked-by: Pablo de Lara --- app/test-crypto-perf/main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c index 29373f5b4..8e072fb35 100644 --- a/app/test-crypto-perf/main.c +++ b/app/test-crypto-perf/main.c @@ -106,12 +106,12 @@ 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 there are more 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; -- 2.11.0