aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBalasubramanian Manoharan <bala.manoharan@linaro.org>2015-08-11 17:40:39 +0530
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-10-22 15:00:52 +0300
commitd4687a663fe7c8ef59346ebfcfbd4dc5cc92de56 (patch)
treeefab8cde3ad3287c4040c5b202fe024148f19b9d /include
parent0036672a535d17a8ae90622c1eb825cc1399b5aa (diff)
api: classification: queue and drop policy API name change
changes the name of classification APIs for ODP consistency odp_cos_set_queue() is changed to odp_cos_queue_set() odp_cos_set_drop() is changed to odp_cos_drop_set() Adds the following getter functions odp_cos_queue() odp_cos_drop() Fixes: https://bugs.linaro.org/show_bug.cgi?id=1711 Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/odp/api/classification.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/include/odp/api/classification.h b/include/odp/api/classification.h
index f597b2627..2fdb76700 100644
--- a/include/odp/api/classification.h
+++ b/include/odp/api/classification.h
@@ -120,7 +120,19 @@ int odp_cos_destroy(odp_cos_t cos_id);
* @retval 0 on success
* @retval <0 on failure
*/
-int odp_cos_set_queue(odp_cos_t cos_id, odp_queue_t queue_id);
+int odp_cos_queue_set(odp_cos_t cos_id, odp_queue_t queue_id);
+
+/**
+* Get the queue associated with the specific class-of-service
+*
+* @param[in] cos_id class-of-service instance.
+*
+* @retval queue_handle Queue handle associated with the
+* given class-of-service
+*
+* @retval ODP_QUEUE_INVALID on failure
+*/
+odp_queue_t odp_cos_queue(odp_cos_t cos_id);
/**
* Assign packet drop policy for specific class-of-service
@@ -133,7 +145,17 @@ int odp_cos_set_queue(odp_cos_t cos_id, odp_queue_t queue_id);
*
* @note Optional.
*/
-int odp_cos_set_drop(odp_cos_t cos_id, odp_drop_e drop_policy);
+int odp_cos_drop_set(odp_cos_t cos_id, odp_drop_e drop_policy);
+
+/**
+* Get the drop policy configured for a specific class-of-service instance.
+*
+* @param[in] cos_id class-of-service instance.
+*
+* @retval Drop policy configured with the given
+* class-of-service
+*/
+odp_drop_e odp_cos_drop(odp_cos_t cos_id);
/**
* Request to override per-port class of service