patch 'test/ipsec: skip if no compatible device' has been queued to stable release 20.11.7
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Thu Nov 3 10:26:40 CET 2022
Hi,
FYI, your patch has been queued to stable release 20.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/05/22. 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
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/f8cc9121cf3caffb625f6e028c9fd2690ccceb0f
Thanks.
Luca Boccassi
---
>From f8cc9121cf3caffb625f6e028c9fd2690ccceb0f Mon Sep 17 00:00:00 2001
From: Jeremy Spewock <jspewock at iol.unh.edu>
Date: Tue, 12 Jul 2022 10:17:01 -0400
Subject: [PATCH] test/ipsec: skip if no compatible device
[ upstream commit 37edccf8f79d7a8d0cbb00907a93ec9b9f476ed3 ]
ipsec_autotest is now skipped if no compatible crypto devices are found.
Fixes issue where if at least one crypto device was found but no
compatible crypto devices for the ipsec_autotest test case are present,
the case would fail with no error message. Now, when this situation is
encountered, the test case will be skipped with an explanation.
Fixes: 59d7353b0df0 ("test/ipsec: fix test suite setup")
Signed-off-by: Jeremy Spewock <jspewock at iol.unh.edu>
Signed-off-by: Owen Hilyard <ohilyard at iol.unh.edu>
Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>
---
app/test/test_ipsec.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/app/test/test_ipsec.c b/app/test/test_ipsec.c
index 39531ff667..6c0f880765 100644
--- a/app/test/test_ipsec.c
+++ b/app/test/test_ipsec.c
@@ -310,8 +310,10 @@ testsuite_setup(void)
}
}
- if (ts_params->valid_dev_found == 0)
- return TEST_FAILED;
+ if (ts_params->valid_dev_found == 0) {
+ RTE_LOG(WARNING, USER1, "No compatible crypto device found.\n");
+ return TEST_SKIPPED;
+ }
ts_params->mbuf_pool = rte_pktmbuf_pool_create(
"CRYPTO_MBUFPOOL",
--
2.34.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2022-11-03 09:27:26.780085657 +0000
+++ 0022-test-ipsec-skip-if-no-compatible-device.patch 2022-11-03 09:27:25.333421666 +0000
@@ -1 +1 @@
-From 37edccf8f79d7a8d0cbb00907a93ec9b9f476ed3 Mon Sep 17 00:00:00 2001
+From f8cc9121cf3caffb625f6e028c9fd2690ccceb0f Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 37edccf8f79d7a8d0cbb00907a93ec9b9f476ed3 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -24 +25 @@
-index 7047e17960..7c03a06785 100644
+index 39531ff667..6c0f880765 100644
@@ -27 +28 @@
-@@ -320,8 +320,10 @@ testsuite_setup(void)
+@@ -310,8 +310,10 @@ testsuite_setup(void)
More information about the stable
mailing list