From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 32735A04F0 for ; Thu, 19 Dec 2019 15:40:35 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2962A1BFDC; Thu, 19 Dec 2019 15:40:35 +0100 (CET) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by dpdk.org (Postfix) with ESMTP id E4DA81BFE2 for ; Thu, 19 Dec 2019 15:40:32 +0100 (CET) Received: by mail-wr1-f66.google.com with SMTP id z7so6186920wrl.13 for ; Thu, 19 Dec 2019 06:40:32 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=MVp7+cKKK0P6dGy3j6PoJJ95NejVym9HZ3WlHI0rGz0=; b=vNMMODeB9x1Pnn1MdRL0PsqYcikJNrqx9p/+NmZYuQnHq/mOSWSQt5CaNA0SxJc/77 c+2vMwrkRnIP16+ZodTTi5gvdzp7quU5s94seFkaS5G64hlokExWbRxnOrNETvfMQS19 C7P9d9MbC3bBX3fRMag5M2z7rDPQyfonrTTjTnhleBts2SDBTPhreREzI5DOX+/Yb1PJ 0326IhOnB8Xpwx4/ArFHe22j1OYVjUwnRg5YCoBo8HIL5PTu40wxemg87fVWlX+c3bMl t+rEkXRZcCy20H5Yg01YWwRex096KxAF3TY+StU0KmGhhAnJtn5VSuimLp9lQbvs0u+S XDUg== 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:mime-version:content-transfer-encoding; bh=MVp7+cKKK0P6dGy3j6PoJJ95NejVym9HZ3WlHI0rGz0=; b=ZqpkYwQaq5KbA48PfZet5trtvZ+DfBoo/E+4EuRI2h6P6elH9l6ozbbIr+zU+Jki3D tfdKjOAxoG1zCvbaKEytdovYfjocI19gCNUGbn0Si9NLeq1f7VwNAQykT9p/atfu26Qy la+wysMMJmke0MiWCKNh3HIh9hv4EzMJXtMSqJ9/ikhyYuwsI36YXbq26L0KFK0obmFr IJPcaTZ6tl0TxACm+kGf+gjefEBm62v01kZsO+ubHOEBnux7j0GqoDjQ/X26zWpWsxgd gAHMvWmTQBotJfoltbw/nwYgFcLSfgWM84rVAyQgVjUwirbSfYZ6/gDqv9a7999CQFxR Ny3w== X-Gm-Message-State: APjAAAX/pd2hkqfbh78fyJh1QZSbC8jtcFf45d3nXBlhvR5aVzA9+bbK fOAR5pbCsTB2ypAZ4MWAjUo= X-Google-Smtp-Source: APXvYqwsEmcezZOKCprLuMFS9FaCAWNxSFVlVvw3Gagmz3FhJ2AH0cwkbo3ft5exH6elHtxBFOvUqA== X-Received: by 2002:adf:d850:: with SMTP id k16mr9410506wrl.96.1576766432511; Thu, 19 Dec 2019 06:40:32 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id s8sm6345542wrt.57.2019.12.19.06.40.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 06:40:31 -0800 (PST) From: luca.boccassi@gmail.com To: Akhil Goyal Cc: dpdk stable Date: Thu, 19 Dec 2019 14:34:10 +0000 Message-Id: <20191219143447.21506-103-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191219143447.21506-1-luca.boccassi@gmail.com> References: <20191219143447.21506-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'crypto/dpaa2_sec: fix length retrieved from hardware' has been queued to LTS release 17.11.10 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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to LTS release 17.11.10 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/21/19. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From 8540e08047880d0eedd578499e538ad29674f883 Mon Sep 17 00:00:00 2001 From: Akhil Goyal Date: Wed, 6 Nov 2019 02:37:12 +0530 Subject: [PATCH] crypto/dpaa2_sec: fix length retrieved from hardware [ upstream commit 4bc65cf1190f3ba6b613dd4c76224c8d710c1d04 ] FD retrieved from SEC after crypto processing provides an updated length of the buffer which need to be updated in mbuf. The difference in length can be negative hence changing diff to int32_t from uint32_t. Fixes: 0a23d4b6f4c2 ("crypto/dpaa2_sec: support protocol offload IPsec") Signed-off-by: Akhil Goyal --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 8ccb663531..56259ceb89 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -716,7 +716,7 @@ sec_simple_fd_to_mbuf(const struct qbman_fd *fd, __rte_unused uint8_t id) { struct rte_crypto_op *op; uint16_t len = DPAA2_GET_FD_LEN(fd); - uint16_t diff = 0; + int16_t diff = 0; dpaa2_sec_session *sess_priv; struct rte_mbuf *mbuf = DPAA2_INLINE_MBUF_FROM_BUF( -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2019-12-19 14:32:30.423988864 +0000 +++ 0103-crypto-dpaa2_sec-fix-length-retrieved-from-hardware.patch 2019-12-19 14:32:26.237300443 +0000 @@ -1,15 +1,16 @@ -From 4bc65cf1190f3ba6b613dd4c76224c8d710c1d04 Mon Sep 17 00:00:00 2001 +From 8540e08047880d0eedd578499e538ad29674f883 Mon Sep 17 00:00:00 2001 From: Akhil Goyal Date: Wed, 6 Nov 2019 02:37:12 +0530 Subject: [PATCH] crypto/dpaa2_sec: fix length retrieved from hardware +[ upstream commit 4bc65cf1190f3ba6b613dd4c76224c8d710c1d04 ] + FD retrieved from SEC after crypto processing provides an updated length of the buffer which need to be updated in mbuf. The difference in length can be negative hence changing diff to int32_t from uint32_t. Fixes: 0a23d4b6f4c2 ("crypto/dpaa2_sec: support protocol offload IPsec") -Cc: stable@dpdk.org Signed-off-by: Akhil Goyal --- @@ -17,16 +18,16 @@ 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c -index add3b9ea65..b04890a489 100644 +index 8ccb663531..56259ceb89 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c -@@ -1511,7 +1511,7 @@ sec_simple_fd_to_mbuf(const struct qbman_fd *fd) +@@ -716,7 +716,7 @@ sec_simple_fd_to_mbuf(const struct qbman_fd *fd, __rte_unused uint8_t id) { struct rte_crypto_op *op; uint16_t len = DPAA2_GET_FD_LEN(fd); - uint16_t diff = 0; + int16_t diff = 0; - dpaa2_sec_session *sess_priv __rte_unused; + dpaa2_sec_session *sess_priv; struct rte_mbuf *mbuf = DPAA2_INLINE_MBUF_FROM_BUF( --