X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=examples%2Fqos_meter%2Frte_policer.h;h=95efe5b8572f516e35c9c100597417f8daba8e95;hb=f35e5b3e07b2e7999f7d3085236cc366c9cb4da6;hp=532a853dddf2e2de48f06fa10d683d81eb849c4b;hpb=3998e2a07220844d3f3c17f76a781ced3efe0de0;p=dpdk.git diff --git a/examples/qos_meter/rte_policer.h b/examples/qos_meter/rte_policer.h index 532a853ddd..95efe5b857 100644 --- a/examples/qos_meter/rte_policer.h +++ b/examples/qos_meter/rte_policer.h @@ -9,22 +9,22 @@ #include enum rte_phb_action { - e_RTE_PHB_ACTION_GREEN = e_RTE_METER_GREEN, - e_RTE_PHB_ACTION_YELLOW = e_RTE_METER_YELLOW, - e_RTE_PHB_ACTION_RED = e_RTE_METER_RED, + e_RTE_PHB_ACTION_GREEN = RTE_COLOR_GREEN, + e_RTE_PHB_ACTION_YELLOW = RTE_COLOR_YELLOW, + e_RTE_PHB_ACTION_RED = RTE_COLOR_RED, e_RTE_PHB_ACTION_DROP = 3, }; struct rte_phb { - enum rte_phb_action actions[e_RTE_METER_COLORS][e_RTE_METER_COLORS]; + enum rte_phb_action actions[RTE_COLORS][RTE_COLORS]; }; int rte_phb_config(struct rte_phb *phb_table, uint32_t phb_table_index, - enum rte_meter_color pre_meter, enum rte_meter_color post_meter, enum rte_phb_action action); + enum rte_color pre_meter, enum rte_color post_meter, enum rte_phb_action action); static inline enum rte_phb_action -policer_run(struct rte_phb *phb_table, uint32_t phb_table_index, enum rte_meter_color pre_meter, enum rte_meter_color post_meter) +policer_run(struct rte_phb *phb_table, uint32_t phb_table_index, enum rte_color pre_meter, enum rte_color post_meter) { struct rte_phb *phb = &phb_table[phb_table_index]; enum rte_phb_action action = phb->actions[pre_meter][post_meter];