@@ -277,6 +277,20 @@ void packet_test_length(void)
CU_ASSERT(tailroom >= ODP_CONFIG_PACKET_TAILROOM);
#endif
CU_ASSERT(buf_len >= packet_len + headroom + tailroom);
+
+ pkt = segmented_test_packet;
+ buf_len = odp_packet_buf_len(pkt);
+ headroom = odp_packet_headroom(pkt);
+ tailroom = odp_packet_tailroom(pkt);
+
+ CU_ASSERT(odp_packet_len(pkt) == segmented_packet_len);
+#if ODP_CONFIG_PACKET_HEADROOM != 0 /* Avoid 'always true' warning */
+ CU_ASSERT(headroom >= ODP_CONFIG_PACKET_HEADROOM);
+#endif
+#if ODP_CONFIG_PACKET_TAILROOM != 0 /* Avoid 'always true' warning */
+ CU_ASSERT(tailroom >= ODP_CONFIG_PACKET_TAILROOM);
+#endif
+ CU_ASSERT(buf_len >= packet_len + headroom + tailroom);
}
void packet_test_debug(void)