net/enic: avoid error message when no advanced filtering
[dpdk.git] / examples / qos_meter / main.h
index f51eb66..864f019 100644 (file)
@@ -6,18 +6,20 @@
 #define _MAIN_H_
 
 enum policer_action {
-        GREEN = e_RTE_METER_GREEN,
-        YELLOW = e_RTE_METER_YELLOW,
-        RED = e_RTE_METER_RED,
-        DROP = 3,
+               GREEN = RTE_COLOR_GREEN,
+               YELLOW = RTE_COLOR_YELLOW,
+               RED = RTE_COLOR_RED,
+               DROP = 3,
 };
 
-enum policer_action policer_table[e_RTE_METER_COLORS][e_RTE_METER_COLORS] =
+/* Policy implemented as a static structure. 8< */
+enum policer_action policer_table[RTE_COLORS][RTE_COLORS] =
 {
        { GREEN, RED, RED},
        { DROP, YELLOW, RED},
        { DROP, DROP, RED}
 };
+/* >8 End of policy implemented as a static structure. */
 
 #if APP_MODE == APP_MODE_FWD