@@ -81,7 +81,7 @@ static void classification_test_cos_set_queue(void)
queue_cos = odp_queue_create(queuename,
ODP_QUEUE_TYPE_SCHED, &qparam);
- retval = odp_cos_set_queue(cos_queue, queue_cos);
+ retval = odp_cos_queue_set(cos_queue, queue_cos);
CU_ASSERT(retval == 0);
odp_cos_destroy(cos_queue);
odp_queue_destroy(queue_cos);
@@ -96,9 +96,9 @@ static void classification_test_cos_set_drop(void)
cos_drop = odp_cos_create(cosname);
CU_ASSERT_FATAL(cos_drop != ODP_COS_INVALID);
- retval = odp_cos_set_drop(cos_drop, ODP_COS_DROP_POOL);
+ retval = odp_cos_drop_set(cos_drop, ODP_COS_DROP_POOL);
CU_ASSERT(retval == 0);
- retval = odp_cos_set_drop(cos_drop, ODP_COS_DROP_NEVER);
+ retval = odp_cos_drop_set(cos_drop, ODP_COS_DROP_NEVER);
CU_ASSERT(retval == 0);
odp_cos_destroy(cos_drop);
}
@@ -390,7 +390,7 @@ void configure_cls_pmr_chain(void)
&qparam);
CU_ASSERT_FATAL(queue_list[CLS_PMR_CHAIN_SRC] != ODP_QUEUE_INVALID);
- retval = odp_cos_set_queue(cos_list[CLS_PMR_CHAIN_SRC],
+ retval = odp_cos_queue_set(cos_list[CLS_PMR_CHAIN_SRC],
queue_list[CLS_PMR_CHAIN_SRC]);
CU_ASSERT(retval == 0);
@@ -408,7 +408,7 @@ void configure_cls_pmr_chain(void)
&qparam);
CU_ASSERT_FATAL(queue_list[CLS_PMR_CHAIN_DST] != ODP_QUEUE_INVALID);
- retval = odp_cos_set_queue(cos_list[CLS_PMR_CHAIN_DST],
+ retval = odp_cos_queue_set(cos_list[CLS_PMR_CHAIN_DST],
queue_list[CLS_PMR_CHAIN_DST]);
parse_ipv4_string(CLS_PMR_CHAIN_SADDR, &addr, &mask);
@@ -494,7 +494,7 @@ void configure_pktio_default_cos(void)
ODP_QUEUE_TYPE_SCHED, &qparam);
CU_ASSERT_FATAL(queue_list[CLS_DEFAULT] != ODP_QUEUE_INVALID);
- retval = odp_cos_set_queue(cos_list[CLS_DEFAULT],
+ retval = odp_cos_queue_set(cos_list[CLS_DEFAULT],
queue_list[CLS_DEFAULT]);
CU_ASSERT(retval == 0);
@@ -541,7 +541,7 @@ void configure_pktio_error_cos(void)
cos_list[CLS_ERROR] = odp_cos_create(cosname);
CU_ASSERT_FATAL(cos_list[CLS_ERROR] != ODP_COS_INVALID);
- retval = odp_cos_set_queue(cos_list[CLS_ERROR], queue_list[CLS_ERROR]);
+ retval = odp_cos_queue_set(cos_list[CLS_ERROR], queue_list[CLS_ERROR]);
CU_ASSERT(retval == 0);
retval = odp_pktio_error_cos_set(pktio_loop, cos_list[CLS_ERROR]);
@@ -628,7 +628,7 @@ void configure_cos_with_l2_priority(void)
&qparam);
CU_ASSERT_FATAL(queue_tbl[i] != ODP_QUEUE_INVALID);
queue_list[CLS_L2_QOS_0 + i] = queue_tbl[i];
- retval = odp_cos_set_queue(cos_tbl[i], queue_tbl[i]);
+ retval = odp_cos_queue_set(cos_tbl[i], queue_tbl[i]);
CU_ASSERT(retval == 0);
qos_tbl[i] = i;
}
@@ -690,7 +690,7 @@ void configure_pmr_cos(void)
&qparam);
CU_ASSERT_FATAL(queue_list[CLS_PMR] != ODP_QUEUE_INVALID);
- retval = odp_cos_set_queue(cos_list[CLS_PMR],
+ retval = odp_cos_queue_set(cos_list[CLS_PMR],
queue_list[CLS_PMR]);
CU_ASSERT(retval == 0);
@@ -761,7 +761,7 @@ void configure_pktio_pmr_match_set_cos(void)
&qparam);
CU_ASSERT_FATAL(queue_list[CLS_PMR_SET] != ODP_QUEUE_INVALID);
- retval = odp_cos_set_queue(cos_list[CLS_PMR_SET],
+ retval = odp_cos_queue_set(cos_list[CLS_PMR_SET],
queue_list[CLS_PMR_SET]);
CU_ASSERT(retval == 0);
validation support for API name change from odp_cos_set_drop() to odp_cos_drop_set() and odp_cos_set_queue() to odp_cos_queue_set() Fixes: https://bugs.linaro.org/show_bug.cgi?id=1711 Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org> --- test/validation/classification/odp_classification_basic.c | 6 +++--- test/validation/classification/odp_classification_tests.c | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-)