Skip to contentSkip to conversation

test/security_inline_proto: skip tests if no HW support

PATCH Applied Bruce Richardson 2 participants 2 messages Mar 2 – Mar 10

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/security_inline_proto: skip tests if no HW support

If the underlying ethdev HW does not support the security offload, return back the TEST_SKIPPED return value to immediately skip the tests rather than continuing to fail later.

Fixes 108646569579 ("test/security: add event inline IPsec cases")
---
 app/test/test_security_inline_proto.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
app/test/test_security_inline_proto.c +3 -1
index 8b88fce3e9..b0cce5ebd9 100644
@@ -2147,7 +2147,9 @@ event_inline_ipsec_testsuite_setup(void)
 		return TEST_SKIPPED;
 	}
 
-	init_mempools(NB_MBUF);
+	ret = init_mempools(NB_MBUF);
+	if (ret != 0)
+		return ret;
 
 	if (tx_pkts_burst == NULL) {
 		tx_pkts_burst = (struct rte_mbuf **)rte_calloc("tx_buff",
Signature · 1 line
2.51.0