Message ID | 1440759940-17679-4-git-send-email-zoltan.kiss@linaro.org |
---|---|
State | Accepted |
Commit | 95f9aade1427a711fb0b8d9781e3d57dce59995a |
Headers | show |
diff --git a/test/validation/packet/packet.c b/test/validation/packet/packet.c index 97ffd14..18e3b59 100644 --- a/test/validation/packet/packet.c +++ b/test/validation/packet/packet.c @@ -161,6 +161,12 @@ void packet_test_basic_metadata(void) CU_ASSERT(odp_packet_pool(pkt) != ODP_POOL_INVALID); /* Packet was allocated by application so shouldn't have valid pktio. */ CU_ASSERT(odp_packet_input(pkt) == ODP_PKTIO_INVALID); + + odp_packet_flow_hash_set(pkt, UINT32_MAX); + CU_ASSERT(odp_packet_has_flow_hash(pkt)); + CU_ASSERT(odp_packet_flow_hash(pkt) == UINT32_MAX); + odp_packet_has_flow_hash_clr(pkt); + CU_ASSERT(!odp_packet_has_flow_hash(pkt)); } void packet_test_length(void)
Set the max value, check if it is maintained, then clear the flag. Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org> --- v8: adjust to newer API definition test/validation/packet/packet.c | 6 ++++++ 1 file changed, 6 insertions(+)