diff --git a/test/validation/api/pktio/lso.c b/test/validation/api/pktio/lso.c index 8d1e518546..5800570e70 100644 --- a/test/validation/api/pktio/lso.c +++ b/test/validation/api/pktio/lso.c @@ -767,6 +767,7 @@ static void lso_test(odp_lso_profile_param_t param, uint32_t max_payload, uint32_t offset, len, payload_len, payload_sum; odp_packet_t pkt_out[MAX_NUM_SEG]; uint32_t sent_payload = pkt_len - hdr_len; + const int is_custom_proto = (param.lso_proto == ODP_LSO_PROTO_CUSTOM); profile = odp_lso_profile_create(pktio_a->hdl, ¶m); CU_ASSERT_FATAL(profile != ODP_LSO_PROFILE_INVALID); @@ -821,6 +822,8 @@ static void lso_test(odp_lso_profile_param_t param, uint32_t max_payload, } CU_ASSERT(payload_len <= max_payload); + if (is_custom_proto && seg_num < num - 1) + CU_ASSERT(payload_len == max_payload); if (compare_data(seg, hdr_len, test_packet + offset, payload_len) >= 0) { ODPH_ERR(" Payload compare failed at offset %u\n", offset);