From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f52.google.com (mail-pg0-f52.google.com [74.125.83.52]) by dpdk.org (Postfix) with ESMTP id 1EA987D86 for ; Mon, 21 Aug 2017 11:34:21 +0200 (CEST) Received: by mail-pg0-f52.google.com with SMTP id i12so96944260pgr.3 for ; Mon, 21 Aug 2017 02:34:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IB2qdBljAd3jSkC5h9OCtxNClBXCf3Gf1+NQFk+ELWE=; b=Wzi//4yRxpp/3sl7HTQrZkQc7YEt6T74Eq0OxVXbcoLCT7fIVtiwRMkbbz0ovzNTWc EWWk/GsXIGA1X8BBp03DoekKjmeKPKnb487l2Tjpr6ITrW9SO1KwT7vMRHgtX7mDlfJB DbqknYo6wEiqsPef64JmrQEqzxa2QTKlMCv8BHIZgtxirfM4GRkcy2Wc3VpxyyteEB2D UaYemdNvVU4XhDQIDuv3KNAnMzOkOQmyKnzHjcv1j9AB4A2i4UBVliEuK/smMvdxjvBW 0X8KzHwDMDOEnDBA4v/xbLamVDbBvb1sif7yfjfPdAnauV7gnWnIU9dU2s0Xc3k2c04K SYBw== 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=IB2qdBljAd3jSkC5h9OCtxNClBXCf3Gf1+NQFk+ELWE=; b=h9qNE8bsG8+1zd5/7p7+atm97SV/X67nKyJfhdL11MIqnFX1QBeDIyd09qR3LyJxLz F4evN7ZuVCMGL4MBSi0Y+Sox/1KqZGo78IdYvYXkxxUnYefSDJBLnUPOCaiHz/rRHTCZ /OPuVMrp0m1bGTFe85Ai1JMa69A0+Wi0T5ePKxIGS1Wif5Kfd8WD7kJ2D6lPabK2m1fI hFev7IE4H2RhxFlFUBVYFKj+sQKGmq4s+ibQco58LlCKkP2nlITXbGasw/z8S2xuyj/R 9B7lUhi37OC0ldSEHEWyqvKCpPprJXoxW47OcyvcpbDkBz1bNo/j1MGsSXmsT+9fGRR2 9bUw== X-Gm-Message-State: AHYfb5iyoa9Y4sO1fhztzKisxnQnrfcO9SazMB1DYhTW/RvslDcfT2Om v8laLBwwaCxH42Vs X-Received: by 10.84.151.68 with SMTP id i62mr18817973pli.225.1503308060392; Mon, 21 Aug 2017 02:34:20 -0700 (PDT) Received: from localhost.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 69sm23355087pfh.186.2017.08.21.02.34.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Aug 2017 02:34:19 -0700 (PDT) From: Yuanhan Liu To: Fan Zhang Cc: Pablo de Lara , dpdk stable , Yuanhan Liu Date: Mon, 21 Aug 2017 17:30:29 +0800 Message-Id: <1503307878-16728-15-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> References: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'crypto/scheduler: fix slave name parsing' has been queued to stable release 17.05.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, 21 Aug 2017 09:34:21 -0000 Hi, FYI, your patch has been queued to stable release 17.05.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 08/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 7bd267bedca5eb17658f38b0d76b06a063c2c07f Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Fri, 7 Jul 2017 06:17:30 +0100 Subject: [PATCH] crypto/scheduler: fix slave name parsing [ upstream commit 829d1327310be6d79ad8d6617f7abcc1ad1ad202 ] This patch fixes the incorrect index checking in parse_slave function. Fixes: 503e9c5afb38 ("crypto/scheduler: register as vdev driver") Signed-off-by: Fan Zhang Acked-by: Pablo de Lara --- drivers/crypto/scheduler/scheduler_pmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/scheduler/scheduler_pmd.c b/drivers/crypto/scheduler/scheduler_pmd.c index 0b63c20..8188484 100644 --- a/drivers/crypto/scheduler/scheduler_pmd.c +++ b/drivers/crypto/scheduler/scheduler_pmd.c @@ -277,7 +277,7 @@ parse_slave_arg(const char *key __rte_unused, { struct scheduler_init_params *param = extra_args; - if (param->nb_slaves >= RTE_CRYPTODEV_SCHEDULER_MAX_NB_SLAVES - 1) { + if (param->nb_slaves >= RTE_CRYPTODEV_SCHEDULER_MAX_NB_SLAVES) { CS_LOG_ERR("Too many slaves.\n"); return -ENOMEM; } -- 2.7.4