This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via 077b6c427cac9687349a56ebf5602bb953348440 (commit) via 66869dae3b8cce7ed020d6922bd68ed30542f753 (commit) via c9417b862f7df0213b5135f0aa364761cb23cec6 (commit) from 0955fbb395dc1651a8bcd473beae2154d39f4a69 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 077b6c427cac9687349a56ebf5602bb953348440 Author: Matias Elo matias.elo@nokia.com Date: Fri Mar 31 15:18:49 2017 +0300
validation: packet: use common define for test pool sizes
Signed-off-by: Matias Elo matias.elo@nokia.com Reviewed-by: Balakrishna Garapati balakrishna.garapati@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/test/common_plat/validation/api/packet/packet.c b/test/common_plat/validation/api/packet/packet.c index af9a667e..284aaeb5 100644 --- a/test/common_plat/validation/api/packet/packet.c +++ b/test/common_plat/validation/api/packet/packet.c @@ -1386,7 +1386,7 @@ void packet_test_concat_small(void)
param.type = ODP_POOL_PACKET; param.pkt.len = len; - param.pkt.num = 100; + param.pkt.num = PACKET_POOL_NUM;
pool = odp_pool_create("packet_pool_concat", ¶m); CU_ASSERT(packet_pool != ODP_POOL_INVALID); @@ -1451,7 +1451,7 @@ void packet_test_concat_extend_trunc(void)
param.type = ODP_POOL_PACKET; param.pkt.len = len; - param.pkt.num = 100; + param.pkt.num = PACKET_POOL_NUM;
pool = odp_pool_create("packet_pool_concat", ¶m); CU_ASSERT_FATAL(packet_pool != ODP_POOL_INVALID); @@ -1544,7 +1544,7 @@ void packet_test_extend_small(void)
param.type = ODP_POOL_PACKET; param.pkt.len = len; - param.pkt.num = 100; + param.pkt.num = PACKET_POOL_NUM;
pool = odp_pool_create("packet_pool_extend", ¶m); CU_ASSERT_FATAL(packet_pool != ODP_POOL_INVALID); @@ -1639,7 +1639,7 @@ void packet_test_extend_large(void)
param.type = ODP_POOL_PACKET; param.pkt.len = len; - param.pkt.num = 100; + param.pkt.num = PACKET_POOL_NUM;
pool = odp_pool_create("packet_pool_extend", ¶m); CU_ASSERT_FATAL(packet_pool != ODP_POOL_INVALID); @@ -1758,7 +1758,7 @@ void packet_test_extend_mix(void)
param.type = ODP_POOL_PACKET; param.pkt.len = len; - param.pkt.num = 100; + param.pkt.num = PACKET_POOL_NUM;
pool = odp_pool_create("packet_pool_extend", ¶m); CU_ASSERT_FATAL(packet_pool != ODP_POOL_INVALID);
commit 66869dae3b8cce7ed020d6922bd68ed30542f753 Author: Matias Elo matias.elo@nokia.com Date: Fri Mar 31 15:18:48 2017 +0300
validation: packet: remove invalid check from packet_test_alloc_segmented()
One can't assume that the packet should be segmented as this test is using a different pool with different parameters than the default test pool.
Signed-off-by: Matias Elo matias.elo@nokia.com Reviewed-by: Balakrishna Garapati balakrishna.garapati@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/test/common_plat/validation/api/packet/packet.c b/test/common_plat/validation/api/packet/packet.c index 619f99a6..af9a667e 100644 --- a/test/common_plat/validation/api/packet/packet.c +++ b/test/common_plat/validation/api/packet/packet.c @@ -422,9 +422,6 @@ void packet_test_alloc_segmented(void) CU_ASSERT_FATAL(pkt != ODP_PACKET_INVALID); CU_ASSERT(odp_packet_len(pkt) == max_len);
- if (segmentation_supported) - CU_ASSERT(odp_packet_is_segmented(pkt) == 1); - odp_packet_free(pkt);
num_alloc = 0;
commit c9417b862f7df0213b5135f0aa364761cb23cec6 Author: Matias Elo matias.elo@nokia.com Date: Fri Mar 31 15:18:47 2017 +0300
validation: packet: increase test pool size
Previously packet_test_concatsplit() could fail on some pool implementations as the pool ran out of buffers. Increase default pools size and use capability to make sure the value is valid.
Signed-off-by: Matias Elo matias.elo@nokia.com Reviewed-by: Balakrishna Garapati balakrishna.garapati@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/test/common_plat/validation/api/packet/packet.c b/test/common_plat/validation/api/packet/packet.c index 2ffd9247..619f99a6 100644 --- a/test/common_plat/validation/api/packet/packet.c +++ b/test/common_plat/validation/api/packet/packet.c @@ -13,6 +13,8 @@ #define PACKET_BUF_LEN ODP_CONFIG_PACKET_SEG_LEN_MIN /* Reserve some tailroom for tests */ #define PACKET_TAILROOM_RESERVE 4 +/* Number of packets in the test packet pool */ +#define PACKET_POOL_NUM 300
static odp_pool_t packet_pool, packet_pool_no_uarea, packet_pool_double_uarea; static uint32_t packet_len; @@ -109,6 +111,7 @@ int packet_suite_init(void) uint32_t udat_size; uint8_t data = 0; uint32_t i; + uint32_t num = PACKET_POOL_NUM;
if (odp_pool_capability(&capa) < 0) { printf("pool_capability failed\n"); @@ -130,13 +133,15 @@ int packet_suite_init(void) segmented_packet_len = capa.pkt.min_seg_len * capa.pkt.max_segs_per_pkt; } + if (capa.pkt.max_num != 0 && capa.pkt.max_num < num) + num = capa.pkt.max_num;
odp_pool_param_init(¶ms);
params.type = ODP_POOL_PACKET; params.pkt.seg_len = capa.pkt.min_seg_len; params.pkt.len = capa.pkt.min_seg_len; - params.pkt.num = 100; + params.pkt.num = num; params.pkt.uarea_size = sizeof(struct udata_struct);
packet_pool = odp_pool_create("packet_pool", ¶ms);
-----------------------------------------------------------------------
Summary of changes: test/common_plat/validation/api/packet/packet.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-)
hooks/post-receive