test/security_inline_proto: skip tests if no HW support
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")
Signed-off-by Bruce Richardson <[email protected]>
--- app/test/test_security_inline_proto.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
app/test/test_security_inline_proto.c +3 -1
@@ -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
Quoted 8 lines
If the underlying ethdev HW does not support the security offload, return back the
TEST_SKIPPEDreturn value to immediately skip the tests rather than continuing to fail later.Fixes 108646569579 ("test/security: add event inline IPsec cases")Signed-off-by Bruce Richardson <[email protected]>
Acked-by Akhil Goyal <[email protected]>
Applied to dpdk-next-crypto
Thanks.