DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] test/ipsec: check for cryptodevs before testing
@ 2022-06-01 11:00 Stanislaw Kardach
  2022-06-21 13:10 ` [EXT] " Akhil Goyal
  0 siblings, 1 reply; 2+ messages in thread
From: Stanislaw Kardach @ 2022-06-01 11:00 UTC (permalink / raw)
  To: Konstantin Ananyev; +Cc: Stanislaw Kardach, upstream, dev

Make sure that ipsec_perf_autotest checks if there are any crypto
devices available before it starts performance testing.
Same test is performed in the ipsec_autotest so it seems prudent to do
it here too to not introduce false failures.

Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
---
 app/test/test_ipsec_perf.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/app/test/test_ipsec_perf.c b/app/test/test_ipsec_perf.c
index 346a851648..0eca003282 100644
--- a/app/test/test_ipsec_perf.c
+++ b/app/test/test_ipsec_perf.c
@@ -597,6 +597,12 @@ test_libipsec_perf(void)
 	uint32_t i;
 	int ret;
 
+	ret = rte_cryptodev_count();
+	if (ret < 1) {
+		RTE_LOG(WARNING, USER1, "No crypto devices found?\n");
+		return TEST_SKIPPED;
+	}
+
 	if (testsuite_setup() < 0) {
 		testsuite_teardown();
 		return TEST_FAILED;
-- 
2.30.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [EXT] [PATCH] test/ipsec: check for cryptodevs before testing
  2022-06-01 11:00 [PATCH] test/ipsec: check for cryptodevs before testing Stanislaw Kardach
@ 2022-06-21 13:10 ` Akhil Goyal
  0 siblings, 0 replies; 2+ messages in thread
From: Akhil Goyal @ 2022-06-21 13:10 UTC (permalink / raw)
  To: Stanislaw Kardach, Konstantin Ananyev; +Cc: upstream, dev


> Make sure that ipsec_perf_autotest checks if there are any crypto
> devices available before it starts performance testing.
> Same test is performed in the ipsec_autotest so it seems prudent to do
> it here too to not introduce false failures.
> 
> Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
> ---
Acked-by: Akhil Goyal <gakhil@marvell.com>

Applied to dpdk-next-crypto

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-21 13:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-01 11:00 [PATCH] test/ipsec: check for cryptodevs before testing Stanislaw Kardach
2022-06-21 13:10 ` [EXT] " Akhil Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).