From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 48CF62AA0 for ; Sun, 20 May 2018 15:08:38 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id ECE3A20B4F; Sun, 20 May 2018 09:08:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 20 May 2018 09:08:37 -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=Gs/n1jpSsL3vLFiRj Cs2JKbhd843Af14EZcImm+gbH0=; b=ayfThaQkvS3sIITVp+zGPfZGs1NQnSgky 79n8CUl3xWhodDVnSS9+pXHqQEH7ZrScA1ZqtPLLPRNpeGFeovXnkYSaVS8blNs5 54Rg+BDP/GFPGEs86cl7WeJxyA04qnpnKeMhomW6Pkj93G9XLZMoRsjOjDjRXsO1 nASIFjHnad3PZ8tFF+NF1NhnMkEjZTqwkF8MmGKjxv5qZpT2v1hzCsFvxssLNa5E Pt8fZrvfhHPjs1EaDZ4YBE4x7xR++4D3oNLB6M/Vldx0cQZCwuPhvV6W249To4aw n/Ra7CGcYrjPjZd+AFQyjNMIeofsWp68IP2P91yDrepJoEY/B8jpw== 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=Gs/n1jpSsL3vLFiRjCs2JKbhd843Af14EZcImm+gbH0=; b=emXRvzFc MxUB1k9pp6PLS1rhqtsUnoYDuK+T+WT8L2estGEgzgo140MaGjB13Ueu8r7Ck1mZ AGg8+haoDG0mZiu/lq2Q6SgKr0Vr4olfwxL0A0vFwb7Qrlpmt2T3KqBpBcV6BWdn W6EJAK2Eu5V5F6Ttq9WDvjnvy0rrj5P/+hsjPCG7azA51676ONSGPYTzSOvfALwZ +wLDk6X5+8VES/yGxhEJitqQw8MSbJMswYvv3+rbHFeb/AzRa7zI52xvYKCv5ZHj u64bIQIa8aTZzbuSS1pnX1A6/bfH7MGMqQOqkF6GzMHcBuZA2iUv6FlYXn769K9N wbSPU3iQAikPrw== X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from yuanhanliu-NB0.tencent.com (unknown [223.74.148.80]) by mail.messagingengine.com (Postfix) with ESMTPA id 39FF41025C; Sun, 20 May 2018 09:08:35 -0400 (EDT) From: Yuanhan Liu To: Pablo de Lara Cc: Fiona Trahe , dpdk stable Date: Sun, 20 May 2018 21:02:20 +0800 Message-Id: <20180520130246.16287-4-yliu@fridaylinux.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180520130246.16287-1-yliu@fridaylinux.org> References: <20180520130246.16287-1-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'app/crypto-perf: check minimum lcore number' 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, 20 May 2018 13:08:38 -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/27/18. So please shout if anyone has objections. Thanks. --yliu --- >>From d879418692098c87b67f5ad6bf71cf8cdc1da0bd Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Wed, 9 May 2018 10:44:21 +0100 Subject: [PATCH] app/crypto-perf: check minimum lcore number [ upstream commit 0bb32d94973987c82351edd6e6e1a4e53dfd83a6 ] The crypto performance application requires at least two cores: one master core that launches the other slaves and one core acting as slave running the crypto device. Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application") Signed-off-by: Pablo de Lara Acked-by: Fiona Trahe --- app/test-crypto-perf/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c index 8e072fb35..13e012188 100644 --- a/app/test-crypto-perf/main.c +++ b/app/test-crypto-perf/main.c @@ -106,6 +106,12 @@ cperf_initialize_cryptodev(struct cperf_options *opts, uint8_t *enabled_cdevs, nb_lcores = rte_lcore_count() - 1; + if (nb_lcores < 1) { + RTE_LOG(ERR, USER1, + "Number of enabled cores need to be higher than 1\n"); + return -EINVAL; + } + /* * Use less number of devices, * if there are more available than cores. -- 2.11.0