@@ -293,6 +293,12 @@ void packet_test_length(void)
CU_ASSERT(buf_len >= packet_len + headroom + tailroom);
}
+void packet_test_prefetch(void)
+{
+ odp_packet_prefetch(test_packet, 0, odp_packet_len(test_packet));
+ CU_PASS();
+}
+
void packet_test_debug(void)
{
CU_ASSERT(odp_packet_is_valid(test_packet) == 1);
@@ -948,6 +954,7 @@ odp_testinfo_t packet_suite[] = {
ODP_TEST_INFO(packet_test_debug),
ODP_TEST_INFO(packet_test_segments),
ODP_TEST_INFO(packet_test_length),
+ ODP_TEST_INFO(packet_test_prefetch),
ODP_TEST_INFO(packet_test_headroom),
ODP_TEST_INFO(packet_test_tailroom),
ODP_TEST_INFO(packet_test_context),
@@ -16,6 +16,7 @@ void packet_test_alloc_segmented(void);
void packet_test_event_conversion(void);
void packet_test_basic_metadata(void);
void packet_test_length(void);
+void packet_test_prefetch(void);
void packet_test_debug(void);
void packet_test_context(void);
void packet_test_layer_offsets(void);
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> --- test/validation/packet/packet.c | 7 +++++++ test/validation/packet/packet.h | 1 + 2 files changed, 8 insertions(+)