[PATCH] test/security_inline_proto: skip tests if no HW support

Bruce Richardson bruce.richardson at intel.com
Mon Mar 2 17:07:40 CET 2026


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")
Cc: stable at dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
 app/test/test_security_inline_proto.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/test/test_security_inline_proto.c b/app/test/test_security_inline_proto.c
index 8b88fce3e9..b0cce5ebd9 100644
--- a/app/test/test_security_inline_proto.c
+++ b/app/test/test_security_inline_proto.c
@@ -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",
-- 
2.51.0



More information about the dev mailing list