From: Petri Savolainen <petri.savolai...@linaro.org>

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.savolai...@linaro.org>
Reviewed-by: Bill Fischofer <bill.fischo...@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uva...@linaro.org>
---
/** Email created from pull request 179 (muvarov:api-next)
 ** https://github.com/Linaro/odp/pull/179
 ** Patch: https://github.com/Linaro/odp/pull/179.patch
 ** Base sha: 6b6253c30f88c80bf632436ff06c1b000860a2f1
 ** Merge commit sha: ada61f5ba5f940d03a95893940c21028d4c75d19
 **/
 test/common_plat/validation/api/packet/packet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/common_plat/validation/api/packet/packet.c 
b/test/common_plat/validation/api/packet/packet.c
index 28bc12b0d..898dac878 100644
--- a/test/common_plat/validation/api/packet/packet.c
+++ b/test/common_plat/validation/api/packet/packet.c
@@ -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);

Reply via email to