diff mbox

[API-NEXT/PATCHv2,6/6] linux-generic: classification: rename odp_drop_e to odp_cls_drop_t

Message ID 1450258133-3375-6-git-send-email-bala.manoharan@linaro.org
State New
Headers show

Commit Message

Balasubramanian Manoharan Dec. 16, 2015, 9:28 a.m. UTC
changes drop policy enum name from odp_drop_e to odp_cls_drop_t

Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>
---
 platform/linux-generic/include/odp_classification_datamodel.h | 2 +-
 platform/linux-generic/odp_classification.c                   | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/platform/linux-generic/include/odp_classification_datamodel.h b/platform/linux-generic/include/odp_classification_datamodel.h
index 7784ea8..5b65202 100644
--- a/platform/linux-generic/include/odp_classification_datamodel.h
+++ b/platform/linux-generic/include/odp_classification_datamodel.h
@@ -70,7 +70,7 @@  struct cos_s {
 	union pmr_u *pmr;		/* Chained PMR */
 	union cos_u *linked_cos;	/* CoS linked with the PMR */
 	uint32_t valid;			/* validity Flag */
-	odp_drop_e drop_policy;		/* Associated Drop Policy */
+	odp_cls_drop_t drop_policy;		/* Associated Drop Policy */
 	odp_queue_group_t queue_group;	/* Associated Queue Group */
 	odp_cos_flow_set_t flow_set;	/* Assigned Flow Set */
 	char name[ODP_COS_NAME_LEN];	/* name */
diff --git a/platform/linux-generic/odp_classification.c b/platform/linux-generic/odp_classification.c
index da6123e..7a8b239 100644
--- a/platform/linux-generic/odp_classification.c
+++ b/platform/linux-generic/odp_classification.c
@@ -166,7 +166,7 @@  odp_cos_t odp_cls_cos_create(const char *name, odp_cls_cos_param_t *param)
 	int i;
 	queue_entry_t *queue;
 	pool_entry_t *pool;
-	odp_drop_e drop_policy;
+	odp_cls_drop_t drop_policy;
 
 	/* Packets are dropped if Queue or Pool is invalid*/
 	if (param->queue == ODP_QUEUE_INVALID)
@@ -321,7 +321,7 @@  odp_queue_t odp_cos_queue(odp_cos_t cos_id)
 	return cos->s.queue->s.handle;
 }
 
-int odp_cos_drop_set(odp_cos_t cos_id, odp_drop_e drop_policy)
+int odp_cos_drop_set(odp_cos_t cos_id, odp_cls_drop_t drop_policy)
 {
 	cos_t *cos = get_cos_entry(cos_id);
 
@@ -335,7 +335,7 @@  int odp_cos_drop_set(odp_cos_t cos_id, odp_drop_e drop_policy)
 	return 0;
 }
 
-odp_drop_e odp_cos_drop(odp_cos_t cos_id)
+odp_cls_drop_t odp_cos_drop(odp_cos_t cos_id)
 {
 	cos_t *cos = get_cos_entry(cos_id);