@@ -306,6 +306,7 @@ int classification_suite_init(void)
fprintf(stderr, "unable to destroy pool.\n");
return -1;
}
+ 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;
@@ -388,6 +389,7 @@ void configure_cls_pmr_chain(void)
cos_list[CLS_PMR_CHAIN_SRC] = odp_cos_create(cosname);
CU_ASSERT_FATAL(cos_list[CLS_PMR_CHAIN_SRC] != ODP_COS_INVALID);
+ odp_queue_param_init(&qparam);
qparam.sched.prio = ODP_SCHED_PRIO_NORMAL;
qparam.sched.sync = ODP_SCHED_SYNC_NONE;
qparam.sched.group = ODP_SCHED_GROUP_ALL;
@@ -495,6 +497,7 @@ void configure_pktio_default_cos(void)
cos_list[CLS_DEFAULT] = odp_cos_create(cosname);
CU_ASSERT_FATAL(cos_list[CLS_DEFAULT] != ODP_COS_INVALID);
+ 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;
@@ -536,6 +539,7 @@ void configure_pktio_error_cos(void)
char queuename[ODP_QUEUE_NAME_LEN];
char cosname[ODP_COS_NAME_LEN];
+ odp_queue_param_init(&qparam);
qparam.sched.prio = ODP_SCHED_PRIO_LOWEST;
qparam.sched.sync = ODP_SCHED_SYNC_NONE;
qparam.sched.group = ODP_SCHED_GROUP_ALL;
@@ -622,6 +626,7 @@ void configure_cos_with_l2_priority(void)
for (i = 0; i < CLS_L2_QOS_MAX; i++)
qos_tbl[i] = 0;
+ odp_queue_param_init(&qparam);
qparam.sched.sync = ODP_SCHED_SYNC_NONE;
qparam.sched.group = ODP_SCHED_GROUP_ALL;
for (i = 0; i < num_qos; i++) {
@@ -689,6 +694,7 @@ void configure_pmr_cos(void)
cos_list[CLS_PMR] = odp_cos_create(cosname);
CU_ASSERT_FATAL(cos_list[CLS_PMR] != ODP_COS_INVALID);
+ odp_queue_param_init(&qparam);
qparam.sched.prio = ODP_SCHED_PRIO_HIGHEST;
qparam.sched.sync = ODP_SCHED_SYNC_NONE;
qparam.sched.group = ODP_SCHED_GROUP_ALL;
@@ -760,6 +766,7 @@ void configure_pktio_pmr_match_set_cos(void)
cos_list[CLS_PMR_SET] = odp_cos_create(cosname);
CU_ASSERT_FATAL(cos_list[CLS_PMR_SET] != ODP_COS_INVALID);
+ odp_queue_param_init(&qparam);
qparam.sched.prio = ODP_SCHED_PRIO_HIGHEST;
qparam.sched.sync = ODP_SCHED_SYNC_NONE;
qparam.sched.group = ODP_SCHED_GROUP_ALL;
Add odp_queue_param_init() calls to test. This fixes Bug https://bugs.linaro.org/show_bug.cgi?id=1816 Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> --- test/validation/classification/odp_classification_tests.c | 7 +++++++ 1 file changed, 7 insertions(+)