[11/13] test/crypto: skip null auth in ICV corrupt case

Message ID 1638777528-553-12-git-send-email-anoobj@marvell.com (mailing list archive)
State Superseded, archived
Delegated to: akhil goyal
Headers
Series Add new cases to lookaside IPsec tests |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Anoob Joseph Dec. 6, 2021, 7:58 a.m. UTC
  From: Tejasree Kondoj <ktejasree@marvell.com>

Skipping NULL auth in ICV corruption test case.

Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
---
 app/test/test_cryptodev.c | 5 +++++
 1 file changed, 5 insertions(+)
  

Patch

diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index 744eb9f..0f7885c 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -9428,6 +9428,11 @@  test_ipsec_proto_all(const struct ipsec_test_flags *flags)
 				      td_outb,
 				      nb_pkts);
 
+		if (flags->icv_corrupt && (td_outb->aead == false) &&
+		    (td_outb->xform.chain.auth.auth.algo ==
+		     RTE_CRYPTO_AUTH_NULL))
+			continue;
+
 		ret = test_ipsec_proto_process(td_outb, td_inb, nb_pkts, true,
 					       flags);
 		if (ret == TEST_SKIPPED)