[dpdk-stable] patch 'crypto/dpaa2_sec: fix length retrieved from hardware' has been queued to LTS release 17.11.10

luca.boccassi at gmail.com luca.boccassi at gmail.com
Thu Dec 19 15:34:10 CET 2019


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 <akhil.goyal at nxp.com>
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 <akhil.goyal at nxp.com>
---
 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 <akhil.goyal at nxp.com>
 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 at dpdk.org
 
 Signed-off-by: Akhil Goyal <akhil.goyal at nxp.com>
 ---
@@ -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(
 -- 


More information about the stable mailing list