[dpdk-stable] patch 'crypto/octeontx: fix session-less mode' has been queued to stable release 20.11.2

Xueming Li xuemingl at nvidia.com
Mon May 10 18:02:01 CEST 2021


Hi,

FYI, your patch has been queued to stable release 20.11.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 05/12/21. 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.

Queued patches are on a temporary branch at:
https://github.com/steevenlee/dpdk

This queued commit can be viewed at:
https://github.com/steevenlee/dpdk/commit/96d2d64bf106285cebef6da4a3a6fba492ae2f21

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From 96d2d64bf106285cebef6da4a3a6fba492ae2f21 Mon Sep 17 00:00:00 2001
From: Ankur Dwivedi <adwivedi at marvell.com>
Date: Mon, 1 Mar 2021 11:29:55 +0530
Subject: [PATCH] crypto/octeontx: fix session-less mode
Cc: Luca Boccassi <bluca at debian.org>

[ upstream commit 8e177f149ec3c8ace46d225bb0bc69b7e099c7a4 ]

A temporary session is created for sessionless crypto operations.
rte_cryptodev_sym_session_create() should be used for creating the
temporary session as it initializes the session structure in the
correct way.

Fixes: caeba5062c39 ("crypto/octeontx: improve symmetric session-less path")

Signed-off-by: Ankur Dwivedi <adwivedi at marvell.com>
Acked-by: Akhil Goyal <gakhil at marvell.com>
---
 drivers/crypto/octeontx/otx_cryptodev_ops.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/crypto/octeontx/otx_cryptodev_ops.c b/drivers/crypto/octeontx/otx_cryptodev_ops.c
index 0cf760b296..b74eb2694b 100644
--- a/drivers/crypto/octeontx/otx_cryptodev_ops.c
+++ b/drivers/crypto/octeontx/otx_cryptodev_ops.c
@@ -577,8 +577,8 @@ otx_cpt_enq_single_sym_sessless(struct cpt_instance *instance,
 	int ret;
 
 	/* Create temporary session */
-
-	if (rte_mempool_get(instance->sess_mp, (void **)&sess))
+	sess = rte_cryptodev_sym_session_create(instance->sess_mp);
+	if (sess == NULL)
 		return -ENOMEM;
 
 	ret = sym_session_configure(driver_id, sym_op->xform, sess,
-- 
2.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-05-10 23:59:31.046805500 +0800
+++ 0173-crypto-octeontx-fix-session-less-mode.patch	2021-05-10 23:59:26.610000000 +0800
@@ -1 +1 @@
-From 8e177f149ec3c8ace46d225bb0bc69b7e099c7a4 Mon Sep 17 00:00:00 2001
+From 96d2d64bf106285cebef6da4a3a6fba492ae2f21 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Luca Boccassi <bluca at debian.org>
+
+[ upstream commit 8e177f149ec3c8ace46d225bb0bc69b7e099c7a4 ]
@@ -12 +14,0 @@
-Cc: stable at dpdk.org


More information about the stable mailing list