From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id 5633EE5D for ; Mon, 30 Apr 2018 16:44:21 +0200 (CEST) Received: by mail-wr0-f196.google.com with SMTP id q3-v6so8290614wrj.6 for ; Mon, 30 Apr 2018 07:44:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4kblxaPWxMCD/AKIUVrjwi3nZ53sZeoKNBd6dAFr/LY=; b=B4jUwGknHoaOXLOY+qJsmr+/XFE3lPOGizQB4IIVcgpMREHD0X7MbSJbYlPDo7DfGY 73tJwZ2FKiTpQ1g4eo31XPnmNXZOR2QoLNYLNo1ocDRxIMnngaq5p8qQJXWJn3EqUEnE QqNLJ05gLByWc3lAZF/TIaGr2ygKwmEtWOlsy9BqAKOatb6MCkwMQHqiQNDYegqZ72PD TRgevOKfJXOCIZEsj4EI5G8QxiJusGLM1OxRrreDbcTjBCyyQXMN95eAdPpwQfnRT6pK dvXG2UKVC/NwJ5/nMdWxJwILuHUiahe7X4jPFL8jwU5ZQcq7moetUD4eyQOab3Nkg++l eNvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4kblxaPWxMCD/AKIUVrjwi3nZ53sZeoKNBd6dAFr/LY=; b=RRzl8+twEGCIRhidFZHlxQ4SdUb36/QV8Tu0tFTmgeDawC1Xgn3q8sBJA0rgIpc19m yaYCZDwX1zhircVvp3ATkv11zSseSX3LSdAH9zw6PLYuElEQ2jQcKkdW3E9M4Tb5LJAX L2CheET4r949qUM572V5JND4dW7zm9DBI/ZK6pzWGEx1RZCqh+Jff9FNyIUS3MJ7sbQY pEqLNOthqi1rYLxafi1QlSqR+7jaccux5FVk/peczuiGbIJd7zzOgrIIRa5X0YcIn+fT zKKYXCR8PiQs+aWMsE4sv1ARFQczrxL5WSZpLX2PpT5AFthLnHqMBw1QlH7nBWjw/cAE rslg== X-Gm-Message-State: ALQs6tBdfVrwLDh0rnbIt+kJKQ49m4EslALCx//IwpmOrMj0osjN7rQB eNWbi6kSNz06R/iA77YFHziD0Q9KKzc= X-Google-Smtp-Source: AB8JxZp+jiJ8B4CCVUDMAwTp6cyuLJkma32dEVKTxrRBx6UI5EApAB/lJA97GfiKaBENDreSfkMfww== X-Received: by 2002:adf:b2f5:: with SMTP id g108-v6mr9736634wrd.147.1525099460659; Mon, 30 Apr 2018 07:44:20 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id x7-v6sm9634333wrm.0.2018.04.30.07.44.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:44:19 -0700 (PDT) From: luca.boccassi@gmail.com To: Hemant Agrawal Cc: Pablo de Lara , dpdk stable Date: Mon, 30 Apr 2018 15:41:27 +0100 Message-Id: <20180430144223.18657-72-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430144223.18657-1-luca.boccassi@gmail.com> References: <20180430140606.4615-80-luca.boccassi@gmail.com> <20180430144223.18657-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'app/crypto-perf: fix excess crypto device error' has been queued to stable release 18.02.2 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: Mon, 30 Apr 2018 14:44:21 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 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/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 332e51a494440a6b662fbaedb2aa54a0c8bfeb90 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 019d83598..d905e13a1 100644 --- a/app/test-crypto-perf/main.c +++ b/app/test-crypto-perf/main.c @@ -80,12 +80,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.14.2