From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id E6AC11B818 for ; Tue, 15 May 2018 15:47:53 +0200 (CEST) Received: by mail-wr0-f194.google.com with SMTP id h5-v6so222759wrm.4 for ; Tue, 15 May 2018 06:47:53 -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=ihbguSqh4irvALICMYbcyTCpH/s13Miyl0SrGo5/HTo=; b=fvm50onaKtBAoMoj7E/JlI3yejGKUev1bLpu++eH2tzK7Fz8IBw7ngE7ouOmpEanaM kujANciqp5VUO8HUzuWFanc1o6vFcG+3RNQQaWzudFqdaTK2pFS3/7qrV1PHOXkJumrx Crlq+n7v+P6FXh3eCCM66FhgxXFeh6m2LCBxAgLo5nlv0NrvwugQPgts0RgkhTWt6Cg1 xOtMhUg7A5KOFR3MvY6GPmD5eXGbWwrp+hHkuHhBmNbLdiyWADTyUxDphS9dfePPeywR Mvk88c8i1Fk6W7jZKqOCT68BY4LKgyTifcTU1AF0jwf53kkqAa5uDqhpAiBFFS6vHjaF T87g== 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=ihbguSqh4irvALICMYbcyTCpH/s13Miyl0SrGo5/HTo=; b=tbRSY1fKWmj4zhmpMiOgUAVQtoWClKUtXngpwwh3x8WbX9mOXybKKTHuMlCXj0pVdi pxrRH812FtixfKUVz7xPuEOHbiuA095D1PrtA2TnP2AwKG5tUik6uQG2IKqB2mwAq7Wd IxXPfEjqkiMndSqJBuEUQRxqQ4MOOHAXRb/EOVmQ6cOuNhPIz+BRlwXqrmx5IOOfeeYi 1MyRSNulSdbnogyQCbDZ56oLDJXor4IFgpDeyDSFyUN3FgmAQYjteh7jobgLhffFcojl At0jH1Iwnb7L0wIu3zS5xkKDMjTH69H29aNskBA10mS/JZ0Xp+38liOLeT3hHyYfiq+0 mEhw== X-Gm-Message-State: ALKqPwfIeORETPHb1+u3Iwg+ZqpgsGQTv8PhYuDOzT1MEDI7jGXpEZ6J 9KlnKbFghgz1SW0gqcQIdu4= X-Google-Smtp-Source: AB8JxZrtZ+eJYcq/ZVJbsGzVol5YhCnKgjgtXD5uvs8rwmy5VvvvQAkShMDso1GP//PG8Yzp1oWIsQ== X-Received: by 2002:adf:df02:: with SMTP id y2-v6mr11000911wrl.92.1526392073670; Tue, 15 May 2018 06:47:53 -0700 (PDT) Received: from localhost (slip139-92-244-193.lon.uk.prserv.net. [139.92.244.193]) by smtp.gmail.com with ESMTPSA id b185-v6sm608397wmb.25.2018.05.15.06.47.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 06:47:52 -0700 (PDT) From: luca.boccassi@gmail.com To: Pablo de Lara Cc: Fiona Trahe , dpdk stable Date: Tue, 15 May 2018 14:46:19 +0100 Message-Id: <20180515134731.9337-8-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180515134731.9337-1-luca.boccassi@gmail.com> References: <20180503110612.12146-2-luca.boccassi@gmail.com> <20180515134731.9337-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'app/crypto-perf: check minimum lcore number' 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: Tue, 15 May 2018 13:47:54 -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/16/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 920da9bc48116e35baf8ba48ed95089f2da8f176 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 d905e13a1..26e78ff43 100644 --- a/app/test-crypto-perf/main.c +++ b/app/test-crypto-perf/main.c @@ -80,6 +80,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.14.2