[dpdk-stable] patch 'test/crypto: fix asymmetric session mempool creation' has been queued to LTS release 18.11.10

Kevin Traynor ktraynor at redhat.com
Thu Aug 20 17:33:12 CEST 2020


Hi,

FYI, your patch has been queued to LTS release 18.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 08/25/20. 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/kevintraynor/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable-queue/commit/b1caa2cfe65cff6083b8b5a5b0e4815cbb489e45

Thanks.

Kevin.

---
>From b1caa2cfe65cff6083b8b5a5b0e4815cbb489e45 Mon Sep 17 00:00:00 2001
From: Adam Dybkowski <adamx.dybkowski at intel.com>
Date: Mon, 8 Jun 2020 15:15:01 +0200
Subject: [PATCH] test/crypto: fix asymmetric session mempool creation

[ upstream commit 0ad83afdf3352e5e61e8c137131524ee6b2506ce ]

This patch fixes the element size of the mempool used
for allocating asym crypto sessions and their private data.

Fixes: 2c6dab9cd93d ("test/crypto: add RSA and Mod tests")

Signed-off-by: Adam Dybkowski <adamx.dybkowski at intel.com>
Acked-by: Fiona Trahe <fiona.trahe at intel.com>
Acked-by: Akhil Goyal <akhil.goyal at nxp.com>
---
 test/test/test_cryptodev_asym.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/test/test_cryptodev_asym.c b/test/test/test_cryptodev_asym.c
index a899f99735..4828f58213 100644
--- a/test/test/test_cryptodev_asym.c
+++ b/test/test/test_cryptodev_asym.c
@@ -394,6 +394,7 @@ testsuite_setup(void)
 
 	/* setup asym session pool */
-	unsigned int session_size =
-		rte_cryptodev_asym_get_private_session_size(dev_id);
+	unsigned int session_size = RTE_MAX(
+		rte_cryptodev_asym_get_private_session_size(dev_id),
+		rte_cryptodev_asym_get_header_session_size());
 	/*
 	 * Create mempool with TEST_NUM_SESSIONS * 2,
-- 
2.26.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-08-20 16:26:16.148787056 +0100
+++ 0007-test-crypto-fix-asymmetric-session-mempool-creation.patch	2020-08-20 16:26:15.762323761 +0100
@@ -1 +1 @@
-From 0ad83afdf3352e5e61e8c137131524ee6b2506ce Mon Sep 17 00:00:00 2001
+From b1caa2cfe65cff6083b8b5a5b0e4815cbb489e45 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 0ad83afdf3352e5e61e8c137131524ee6b2506ce ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -16 +17 @@
- app/test/test_cryptodev_asym.c | 5 +++--
+ test/test/test_cryptodev_asym.c | 5 +++--
@@ -19,5 +20,5 @@
-diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c
-index b8e0500481..dc62ed7bf3 100644
---- a/app/test/test_cryptodev_asym.c
-+++ b/app/test/test_cryptodev_asym.c
-@@ -936,6 +936,7 @@ testsuite_setup(void)
+diff --git a/test/test/test_cryptodev_asym.c b/test/test/test_cryptodev_asym.c
+index a899f99735..4828f58213 100644
+--- a/test/test/test_cryptodev_asym.c
++++ b/test/test/test_cryptodev_asym.c
+@@ -394,6 +394,7 @@ testsuite_setup(void)



More information about the stable mailing list