[PATCH 2/2] test/crypto: add L4 checksum case for transport mode
Volodymyr Fialko
vfialko at marvell.com
Fri Feb 18 13:52:03 CET 2022
Added test case to verify L4 checksum offload in IPsec transport mode.
Signed-off-by: Volodymyr Fialko <vfialko at marvell.com>
Acked-by: Anoob Joseph <anoobj at marvell.com>
---
app/test/test_cryptodev.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index f6c3cd2b7b..2236736227 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -9697,6 +9697,17 @@ test_ipsec_proto_transport_v4(const void *data __rte_unused)
return test_ipsec_proto_all(&flags);
}
+static int
+test_ipsec_proto_transport_l4_csum(const void *data __rte_unused)
+{
+ struct ipsec_test_flags flags = {
+ .l4_csum = true,
+ .transport = true,
+ };
+
+ return test_ipsec_proto_all(&flags);
+}
+
static int
test_ipsec_proto_stats(const void *data __rte_unused)
{
@@ -14805,6 +14816,10 @@ static struct unit_test_suite ipsec_proto_testsuite = {
"Transport IPv4",
ut_setup_security, ut_teardown,
test_ipsec_proto_transport_v4),
+ TEST_CASE_NAMED_ST(
+ "Transport l4 checksum",
+ ut_setup_security, ut_teardown,
+ test_ipsec_proto_transport_l4_csum),
TEST_CASE_NAMED_ST(
"Statistics: success",
ut_setup_security, ut_teardown,
--
2.25.1
More information about the dev
mailing list