Signed-off-by: Bill Fischofer <bill.fischo...@linaro.org> --- test/performance/odp_l2fwd.c | 2 +- test/performance/odp_pktio_perf.c | 4 ++-- test/performance/odp_scheduling.c | 1 + 3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c index 9ff159b..b5254e0 100644 --- a/test/performance/odp_l2fwd.c +++ b/test/performance/odp_l2fwd.c @@ -414,7 +414,7 @@ int main(int argc, char *argv[]) } /* Create packet pool */ - memset(¶ms, 0, sizeof(params)); + odp_pool_param_init(¶ms); params.pkt.seg_len = SHM_PKT_POOL_BUF_SIZE; params.pkt.len = SHM_PKT_POOL_BUF_SIZE; params.pkt.num = SHM_PKT_POOL_SIZE/SHM_PKT_POOL_BUF_SIZE; diff --git a/test/performance/odp_pktio_perf.c b/test/performance/odp_pktio_perf.c index 7a4582e..d8a720b 100644 --- a/test/performance/odp_pktio_perf.c +++ b/test/performance/odp_pktio_perf.c @@ -675,7 +675,7 @@ static odp_pktio_t create_pktio(const char *iface, int schedule) odp_pool_param_t params; odp_pktio_param_t pktio_param; - memset(¶ms, 0, sizeof(params)); + odp_pool_param_init(¶ms); params.pkt.len = PKT_HDR_LEN + gbl_args->args.pkt_len; params.pkt.seg_len = params.pkt.len; params.pkt.num = PKT_BUF_NUM; @@ -707,7 +707,7 @@ static int test_init(void) int schedule; char inq_name[ODP_QUEUE_NAME_LEN]; - memset(¶ms, 0, sizeof(params)); + odp_pool_param_init(¶ms); params.pkt.len = PKT_HDR_LEN + gbl_args->args.pkt_len; params.pkt.seg_len = params.pkt.len; params.pkt.num = PKT_BUF_NUM; diff --git a/test/performance/odp_scheduling.c b/test/performance/odp_scheduling.c index 1fbeb94..a22e259 100644 --- a/test/performance/odp_scheduling.c +++ b/test/performance/odp_scheduling.c @@ -908,6 +908,7 @@ int main(int argc, char *argv[]) * Create message pool */ + odp_pool_param_init(¶ms); params.buf.size = sizeof(test_message_t); params.buf.align = 0; params.buf.num = MSG_POOL_SIZE/sizeof(test_message_t); -- 2.1.4 _______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lng-odp