From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f54.google.com (mail-pg0-f54.google.com [74.125.83.54]) by dpdk.org (Postfix) with ESMTP id 095498CEE for ; Mon, 21 Aug 2017 11:34:52 +0200 (CEST) Received: by mail-pg0-f54.google.com with SMTP id t3so68819843pgt.0 for ; Mon, 21 Aug 2017 02:34:51 -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=rfvdwv7uNEUq/Oivl5dHEPAxmKhaIO8NSzGxaDfOCX4=; b=VZSjxc+I9pxl8VlkvnADp9VMO36zmpPC2XYIzWIjQ9Id/H4Q1S6wi4v/woz5rap34Y +UWbRjRibcnpgUF4DYCWyo2ofs4tQeAn03RFSdsUVg0d6zqBrdHl569Yu79Nzn3lGzAY 5BDHNoXAZ7JjSnac0B3k0qc3prdKm2KAtBMHeLl/c3xIKXSRoNZ1S0wym/dfMU70NHfT gTXdPGiA11AZXYsE6WcfnRS587akwFRdpfNHKYOblELehLfW6daVm9TCTVtUmDX/GJga sQYfpyQvjCIDzLlZuqEmxPPACGh+kfdZj3cYx4Ne6v6+6uJQzWs768gO22tNLxptUR92 3NxA== 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=rfvdwv7uNEUq/Oivl5dHEPAxmKhaIO8NSzGxaDfOCX4=; b=BiF7OU7qJDvz2HBxnDELk2Q9q2qrdmSPdtx5lHwpVEqSOp5np12AsbxDuvQaS3Ebsz xE69XOkdTR+nmNlniybbxO3zfcBpo7nctquwGrWDCkkgpiv7nVB4IgxHq2av61NmpSVo 1hK1vY97ZNzrPAQSe6SG2t/KVMlj5En7T5hNC8fptrAYagj0MLO8EKTXgg/KnWoJHEoH vWZEgaJjFjjjQRWyV4sLGTYdAqZJkUcahYLNeAoA7ii01doKqsYtYArv75o6LRnH+nrG Yz5cgX6YRVK41D3aJK0QWfQwXKlCCYBZ5t+G32I8u8Wtk83aNXJ0aqNbVgF1G0nlv4aQ XWRQ== X-Gm-Message-State: AHYfb5hP289FtbjU7k+uvPdZ4qCMvUpd9CHr9+mtNWy5wfKUhsvxxzLu JmIg5rbv1jPsxFQ2 X-Received: by 10.101.73.205 with SMTP id t13mr15990942pgs.301.1503308091320; Mon, 21 Aug 2017 02:34:51 -0700 (PDT) Received: from localhost.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 69sm23355087pfh.186.2017.08.21.02.34.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Aug 2017 02:34:50 -0700 (PDT) From: Yuanhan Liu To: Pablo de Lara Cc: Declan Doherty , dpdk stable , Yuanhan Liu Date: Mon, 21 Aug 2017 17:30:35 +0800 Message-Id: <1503307878-16728-21-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/aesni_mb: fix zero burst dequeue' 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:52 -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 438e3ff354309527f3353f5ec4dbf5eaa0a5f885 Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Fri, 14 Jul 2017 07:48:47 +0100 Subject: [PATCH] crypto/aesni_mb: fix zero burst dequeue [ upstream commit 0b4b1e1b88edab32a0cdfe706c800c0419c3a16a ] In the unlikely scenario that an application calls rte_cryptodev_dequeue_burst with nb_ops = 0, there was a job leak, as a job would be created but would not be populated, as no operation is passed. Fixes: 0f548b50a160 ("crypto/aesni_mb: process crypto op on dequeue") Signed-off-by: Pablo de Lara Acked-by: Declan Doherty --- drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c index 9d40a9f..06a6435 100644 --- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c +++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c @@ -622,6 +622,9 @@ aesni_mb_pmd_dequeue_burst(void *queue_pair, struct rte_crypto_op **ops, int retval, processed_jobs = 0; + if (unlikely(nb_ops == 0)) + return 0; + do { /* Get next operation to process from ingress queue */ retval = rte_ring_dequeue(qp->ingress_queue, (void **)&op); -- 2.7.4