patch 'test/crypto: fix synchronous API calls' has been queued to stable release 22.11.7
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Tue Nov 12 23:07:49 CET 2024
Hi,
FYI, your patch has been queued to stable release 22.11.7
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/14/24. 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/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/613e1f7f9edc2f715a217e830b03d009b66c995c
Thanks.
Luca Boccassi
---
>From 613e1f7f9edc2f715a217e830b03d009b66c995c Mon Sep 17 00:00:00 2001
From: Brian Dooley <brian.dooley at intel.com>
Date: Fri, 25 Oct 2024 15:22:51 +0100
Subject: [PATCH] test/crypto: fix synchronous API calls
[ upstream commit 251fdc592da5eddc4d84a95d0c151b0134504a32 ]
For the synchronous API the enqueue/dequeue burst functions are not
called. Skip these tests when calling the synchronous API.
Fixes: 4ad17a1c8fb3 ("test/crypto: fix enqueue/dequeue callback case")
Signed-off-by: Brian Dooley <brian.dooley at intel.com>
---
app/test/test_cryptodev.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index 2069ccad3b..b093fd4ae9 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -12692,6 +12692,10 @@ test_enq_callback_setup(void)
uint16_t qp_id = 0;
int j = 0;
+ /* Skip test if synchronous API is used */
+ if (gbl_action_type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO)
+ return TEST_SKIPPED;
+
/* Verify the crypto capabilities for which enqueue/dequeue is done. */
cap_idx.type = RTE_CRYPTO_SYM_XFORM_AUTH;
cap_idx.algo.auth = RTE_CRYPTO_AUTH_NULL;
@@ -12813,6 +12817,10 @@ test_deq_callback_setup(void)
uint16_t qp_id = 0;
int j = 0;
+ /* Skip test if synchronous API is used */
+ if (gbl_action_type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO)
+ return TEST_SKIPPED;
+
/* Verify the crypto capabilities for which enqueue/dequeue is done. */
cap_idx.type = RTE_CRYPTO_SYM_XFORM_AUTH;
cap_idx.algo.auth = RTE_CRYPTO_AUTH_NULL;
--
2.45.2
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2024-11-12 22:06:59.903326567 +0000
+++ 0039-test-crypto-fix-synchronous-API-calls.patch 2024-11-12 22:06:58.695307642 +0000
@@ -1 +1 @@
-From 251fdc592da5eddc4d84a95d0c151b0134504a32 Mon Sep 17 00:00:00 2001
+From 613e1f7f9edc2f715a217e830b03d009b66c995c Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 251fdc592da5eddc4d84a95d0c151b0134504a32 ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -14,2 +15,2 @@
- app/test/test_cryptodev.c | 11 ++++++++++-
- 1 file changed, 10 insertions(+), 1 deletion(-)
+ app/test/test_cryptodev.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
@@ -18 +19 @@
-index 25eef342b0..c647baeee1 100644
+index 2069ccad3b..b093fd4ae9 100644
@@ -21,11 +22 @@
-@@ -2496,7 +2496,8 @@ test_queue_pair_descriptor_count(void)
- int qp_depth = 0;
- int i;
-
-- RTE_VERIFY(gbl_action_type != RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO);
-+ if (gbl_action_type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO)
-+ return TEST_SKIPPED;
-
- /* Verify if the queue pair depth API is supported by driver */
- qp_depth = rte_cryptodev_qp_depth_used(ts_params->valid_devs[0], 0);
-@@ -15135,6 +15136,10 @@ test_enq_callback_setup(void)
+@@ -12692,6 +12692,10 @@ test_enq_callback_setup(void)
@@ -42 +33 @@
-@@ -15256,6 +15261,10 @@ test_deq_callback_setup(void)
+@@ -12813,6 +12817,10 @@ test_deq_callback_setup(void)
More information about the stable
mailing list