diff mbox

[API-NEXT,PATCHv2,10/10] performance: use odp_pool_param_init routine

Message ID 1435714761-23951-10-git-send-email-bill.fischofer@linaro.org
State Accepted
Commit 2d6a177af0d4dde8019d9b168633a4c2463ed441
Headers show

Commit Message

Bill Fischofer July 1, 2015, 1:39 a.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@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 mbox

Patch

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(&params, 0, sizeof(params));
+	odp_pool_param_init(&params);
 	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(&params, 0, sizeof(params));
+	odp_pool_param_init(&params);
 	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(&params, 0, sizeof(params));
+	odp_pool_param_init(&params);
 	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(&params);
 	params.buf.size  = sizeof(test_message_t);
 	params.buf.align = 0;
 	params.buf.num   = MSG_POOL_SIZE/sizeof(test_message_t);