diff mbox

[prefix=API-NEXT,4/4] performance: use odp_queue_param_init routine

Message ID 1436540845-2890-4-git-send-email-bill.fischofer@linaro.org
State Superseded
Headers show

Commit Message

Bill Fischofer July 10, 2015, 3:07 p.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 test/performance/odp_l2fwd.c      | 1 +
 test/performance/odp_pktio_perf.c | 1 +
 test/performance/odp_scheduling.c | 1 +
 3 files changed, 3 insertions(+)
diff mbox

Patch

diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c
index 7394dfc..232107f 100644
--- a/test/performance/odp_l2fwd.c
+++ b/test/performance/odp_l2fwd.c
@@ -292,6 +292,7 @@  static odp_pktio_t create_pktio(const char *dev, odp_pool_t pool,
 	if (mode == APPL_MODE_PKT_BURST)
 		return pktio;
 
+	odp_queue_param_init(&qparam);
 	qparam.sched.prio  = ODP_SCHED_PRIO_DEFAULT;
 	qparam.sched.sync  = ODP_SCHED_SYNC_ATOMIC;
 	qparam.sched.group = ODP_SCHED_GROUP_ALL;
diff --git a/test/performance/odp_pktio_perf.c b/test/performance/odp_pktio_perf.c
index 98511a5..7766346 100644
--- a/test/performance/odp_pktio_perf.c
+++ b/test/performance/odp_pktio_perf.c
@@ -745,6 +745,7 @@  static int test_init(void)
 	}
 
 	/* create and associate an input queue for the RX side */
+	odp_queue_param_init(&qparam);
 	qparam.sched.prio  = ODP_SCHED_PRIO_DEFAULT;
 	qparam.sched.sync  = ODP_SCHED_SYNC_NONE;
 	qparam.sched.group = ODP_SCHED_GROUP_ALL;
diff --git a/test/performance/odp_scheduling.c b/test/performance/odp_scheduling.c
index 8fa7734..ab0019b 100644
--- a/test/performance/odp_scheduling.c
+++ b/test/performance/odp_scheduling.c
@@ -954,6 +954,7 @@  int main(int argc, char *argv[])
 		name[6] = '0' + i/10;
 		name[7] = '0' + i - 10*(i/10);
 
+		odp_queue_param_init(&param);
 		param.sched.prio  = i;
 		param.sched.sync  = ODP_SCHED_SYNC_ATOMIC;
 		param.sched.group = ODP_SCHED_GROUP_ALL;