diff options
author | Balasubramanian Manoharan <bala.manoharan@linaro.org> | 2015-12-03 16:16:03 +0530 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-12-29 14:07:51 +0300 |
commit | fbc5bf9ba88cd347447f2fb06b95dded1c29c893 (patch) | |
tree | ba3d17e08b7b8455ee1d3a8d6a1a837039eb1ea4 /include/odp/api/classification.h | |
parent | 0425e05c521547e520318cbe65afa9ab5efbc764 (diff) |
api: classification: add odp_cls_cos_pool_set() api
odp_cls_cos_pool_set() api is used to configure packet pool to CoS.
The packets arriving at the CoS is allocated from the configured pool
Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp/api/classification.h')
-rw-r--r-- | include/odp/api/classification.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/odp/api/classification.h b/include/odp/api/classification.h index 380d91b15..725e1ab6d 100644 --- a/include/odp/api/classification.h +++ b/include/odp/api/classification.h @@ -379,6 +379,32 @@ int odp_pktio_pmr_match_set_cos(odp_pmr_set_t pmr_set_id, odp_pktio_t src_pktio, odp_cos_t dst_cos); /** +* Assigns a packet pool for a specific class of service. +* All the packets belonging to the given class of service will +* be allocated from the assigned packet pool. +* The packet pool associated with class of service will supersede the +* packet pool associated with the pktio interface. +* +* @param cos_id class of service handle +* @param pool_id packet pool handle +* +* @retval 0 on success +* @retval <0 on failure +*/ +int odp_cls_cos_pool_set(odp_cos_t cos_id, odp_pool_t pool_id); + +/** +* Get the pool associated with the given class of service +* +* @param cos_id class of service handle +* +* @retval pool handle of the associated pool +* @retval ODP_POOL_INVALID if no associated pool found or +* incase of an error +*/ +odp_pool_t odp_cls_cos_pool(odp_cos_t cos_id); + +/** * Get printable value for an odp_cos_t * * @param hdl odp_cos_t handle to be printed |