Skip to content

Commit

Permalink
validation: packet: relax small concat test
Browse files Browse the repository at this point in the history
Limit number of consecutive small concat to fraction of
the number of packets in the pool. An implementation linking
packets together (no copy) cannot be expected to support
one byte concats up to max packet size.

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
  • Loading branch information
Petri Savolainen authored and muvarov committed Sep 14, 2017
1 parent a820d8a commit 88d36e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common_plat/validation/api/packet/packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ void packet_test_concat_small(void)
int ret;
uint8_t *data;
uint32_t i;
uint32_t len = 32000;
uint32_t len = PACKET_POOL_NUM / 4;
uint8_t buf[len];

CU_ASSERT_FATAL(odp_pool_capability(&capa) == 0);
Expand Down

0 comments on commit 88d36e6

Please sign in to comment.