[v6,1/12] validation: pktio: check sctp flag in parser tests

Message ID 1534870807-18456-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • SCTP checksums support
Related show

Commit Message

Github ODP bot Aug. 21, 2018, 4:59 p.m.
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 674 (lumag:sctp-checksum)
 ** https://github.com/Linaro/odp/pull/674
 ** Patch: https://github.com/Linaro/odp/pull/674.patch
 ** Base sha: f6c423a7d29e2c7d6d890cbc098a398d0d7e1288
 ** Merge commit sha: d4f772b36da26684194cb0452a01b8da1ba7e3e1
 **/
 test/validation/api/pktio/parser.c | 9 +++++++++
 1 file changed, 9 insertions(+)

Patch

diff --git a/test/validation/api/pktio/parser.c b/test/validation/api/pktio/parser.c
index 76df47b1c..f22a62555 100644
--- a/test/validation/api/pktio/parser.c
+++ b/test/validation/api/pktio/parser.c
@@ -301,6 +301,7 @@  static void parser_test_ipv4_icmp(void)
 	CU_ASSERT(!odp_packet_has_ipv6(pkt));
 	CU_ASSERT(!odp_packet_has_tcp(pkt));
 	CU_ASSERT(!odp_packet_has_udp(pkt));
+	CU_ASSERT(!odp_packet_has_sctp(pkt));
 
 	odp_packet_free(pkt);
 }
@@ -318,6 +319,7 @@  static void parser_test_ipv4_tcp(void)
 
 	CU_ASSERT(!odp_packet_has_ipv6(pkt));
 	CU_ASSERT(!odp_packet_has_udp(pkt));
+	CU_ASSERT(!odp_packet_has_sctp(pkt));
 
 	odp_packet_free(pkt);
 }
@@ -335,6 +337,7 @@  static void parser_test_ipv4_udp(void)
 
 	CU_ASSERT(!odp_packet_has_ipv6(pkt));
 	CU_ASSERT(!odp_packet_has_tcp(pkt));
+	CU_ASSERT(!odp_packet_has_sctp(pkt));
 
 	odp_packet_free(pkt);
 }
@@ -353,6 +356,7 @@  static void parser_test_vlan_ipv4_udp(void)
 
 	CU_ASSERT(!odp_packet_has_ipv6(pkt));
 	CU_ASSERT(!odp_packet_has_tcp(pkt));
+	CU_ASSERT(!odp_packet_has_sctp(pkt));
 
 	odp_packet_free(pkt);
 }
@@ -372,6 +376,7 @@  static void parser_test_vlan_qinq_ipv4_udp(void)
 
 	CU_ASSERT(!odp_packet_has_ipv6(pkt));
 	CU_ASSERT(!odp_packet_has_tcp(pkt));
+	CU_ASSERT(!odp_packet_has_sctp(pkt));
 
 	odp_packet_free(pkt);
 }
@@ -390,6 +395,7 @@  static void parser_test_ipv6_icmp(void)
 	CU_ASSERT(!odp_packet_has_ipv4(pkt));
 	CU_ASSERT(!odp_packet_has_tcp(pkt));
 	CU_ASSERT(!odp_packet_has_udp(pkt));
+	CU_ASSERT(!odp_packet_has_sctp(pkt));
 
 	odp_packet_free(pkt);
 }
@@ -407,6 +413,7 @@  static void parser_test_ipv6_tcp(void)
 
 	CU_ASSERT(!odp_packet_has_ipv4(pkt));
 	CU_ASSERT(!odp_packet_has_udp(pkt));
+	CU_ASSERT(!odp_packet_has_sctp(pkt));
 
 	odp_packet_free(pkt);
 }
@@ -424,6 +431,7 @@  static void parser_test_ipv6_udp(void)
 
 	CU_ASSERT(!odp_packet_has_ipv4(pkt));
 	CU_ASSERT(!odp_packet_has_tcp(pkt));
+	CU_ASSERT(!odp_packet_has_sctp(pkt));
 
 	odp_packet_free(pkt);
 }
@@ -442,6 +450,7 @@  static void parser_test_vlan_ipv6_udp(void)
 
 	CU_ASSERT(!odp_packet_has_ipv4(pkt));
 	CU_ASSERT(!odp_packet_has_tcp(pkt));
+	CU_ASSERT(!odp_packet_has_sctp(pkt));
 
 	odp_packet_free(pkt);
 }