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 B62EFA04F0 for ; Tue, 10 Dec 2019 16:01:54 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ACC251B13C; Tue, 10 Dec 2019 16:01:54 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 764781B13C for ; Tue, 10 Dec 2019 16:01:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575990113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=r3Vv6eP429cxUH8OKhMwVuGMDeNNBdjLs4S00yXMkj4=; b=dudDAUrKFEFt3UHtua2R0Biuq3VNEgYIGXlOJ9OLw1qwz//LzWpGUymIKRAkw4WX4Fg2Nv U+dT1tDZMwQmp8QZKohdX/nlZA+4lU24OAfe25UUt1zcUVJGtXEThp9jdn33MH5JxWRMdd D+pcqsLMemgPIxZbRQ1Z/GsabploTxE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-416-HV44-dfXMo6wg89kCwfZdw-1; Tue, 10 Dec 2019 10:01:49 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BA2866124F; Tue, 10 Dec 2019 15:01:48 +0000 (UTC) Received: from rh.redhat.com (ovpn-116-64.ams2.redhat.com [10.36.116.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id C100B5DE52; Tue, 10 Dec 2019 15:01:47 +0000 (UTC) From: Kevin Traynor To: Akhil Goyal Cc: dpdk stable Date: Tue, 10 Dec 2019 14:59:30 +0000 Message-Id: <20191210145937.32755-56-ktraynor@redhat.com> In-Reply-To: <20191210145937.32755-1-ktraynor@redhat.com> References: <20191210145937.32755-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: HV44-dfXMo6wg89kCwfZdw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] patch 'crypto/dpaa2_sec: fix length retrieved from hardware' has been queued to LTS release 18.11.6 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 18.11.6 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/16/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 rebasi= ng (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/d3edfc526b06e1da60= c7d4d73a7fbf2c63f05eaa Thanks. Kevin. --- >From d3edfc526b06e1da60c7d4d73a7fbf2c63f05eaa 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/d= paa2_sec/dpaa2_sec_dpseci.c index ae06438d4..d88856832 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -1302,5 +1302,5 @@ sec_simple_fd_to_mbuf(const struct qbman_fd *fd, __rt= e_unused uint8_t id) =09struct rte_crypto_op *op; =09uint16_t len =3D DPAA2_GET_FD_LEN(fd); -=09uint16_t diff =3D 0; +=09int16_t diff =3D 0; =09dpaa2_sec_session *sess_priv; =20 --=20 2.21.0 --- Diff of the applied patch vs upstream commit (please double-check if non-= empty: --- --- -=092019-12-10 14:49:42.771953204 +0000 +++ 0056-crypto-dpaa2_sec-fix-length-retrieved-from-hardware.patch=092019-1= 2-10 14:49:39.096456947 +0000 @@ -1 +1 @@ -From 4bc65cf1190f3ba6b613dd4c76224c8d710c1d04 Mon Sep 17 00:00:00 2001 +From d3edfc526b06e1da60c7d4d73a7fbf2c63f05eaa Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 4bc65cf1190f3ba6b613dd4c76224c8d710c1d04 ] + @@ -12 +13,0 @@ -Cc: stable@dpdk.org @@ -20 +21 @@ -index add3b9ea6..b04890a48 100644 +index ae06438d4..d88856832 100644 @@ -23 +24 @@ -@@ -1512,5 +1512,5 @@ sec_simple_fd_to_mbuf(const struct qbman_fd *fd) +@@ -1302,5 +1302,5 @@ sec_simple_fd_to_mbuf(const struct qbman_fd *fd, __r= te_unused uint8_t id) @@ -28 +29 @@ - =09dpaa2_sec_session *sess_priv __rte_unused; + =09dpaa2_sec_session *sess_priv;