aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2022-10-31 13:54:06 +0200
committerMatias Elo <matias.elo@nokia.com>2022-12-02 17:11:00 +0200
commitb73c1a5aeb6c5b6d4f0eafbcd1119cb160517184 (patch)
tree1236355060d4a6778d1cdca6ce984afcd2ca95a6 /include
parent79f3932daa0b04815441790a9a0b4d4cb2e621aa (diff)
api: cls: deprecate odp_cos_with_l2_priority()
PMR term for matching VLAN PCP field has been added previously. It can be used instead of an odp_cos_with_l2_priority() call to setup a CoS per VLAN priority. Removing the function as it is redundant. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Kiran Kumar K <kirankumark@marvell.com>
Diffstat (limited to 'include')
-rw-r--r--include/odp/api/spec/classification.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/odp/api/spec/classification.h b/include/odp/api/spec/classification.h
index 82ac64074..0c4294a6a 100644
--- a/include/odp/api/spec/classification.h
+++ b/include/odp/api/spec/classification.h
@@ -828,8 +828,9 @@ odp_cls_drop_t odp_cos_drop(odp_cos_t cos);
#endif
/**
- * Request to override per-port class of service
- * based on Layer-2 priority field if present.
+ * Request to override per-port class of service based on Layer-2 priority field if present.
+ *
+ * @deprecated Use #ODP_PMR_VLAN_PCP_0 instead.
*
* @param pktio_in Ingress port identifier.
* @param num_qos Number of QoS levels, typically 8.
@@ -840,10 +841,8 @@ odp_cls_drop_t odp_cos_drop(odp_cos_t cos);
* @retval 0 on success
* @retval <0 on failure
*/
-int odp_cos_with_l2_priority(odp_pktio_t pktio_in,
- uint8_t num_qos,
- uint8_t qos_table[],
- odp_cos_t cos_table[]);
+int ODP_DEPRECATE(odp_cos_with_l2_priority)(odp_pktio_t pktio_in, uint8_t num_qos,
+ uint8_t qos_table[], odp_cos_t cos_table[]);
/**
* Request to override per-port class of service based on Layer-3 priority field if present.