In APP_MODE_SRTCM_COLOR_AWARE mode, sample app compilation fails
due to wrong meter color type conversion.

Fixes: fc8a10d8527a ("examples/qos_meter: add color policy")

error log-
/qos_meter/main.c:error: conversion to incomplete type
(enum rte_meter_color) input_color);

Signed-off-by: Jasvinder Singh <jasvinder.si...@intel.com>
Reported-by: Peng Yuan <yuan.p...@intel.com>
---
 examples/qos_meter/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/qos_meter/main.c b/examples/qos_meter/main.c
index ce1f63dc7..da7afe8be 100644
--- a/examples/qos_meter/main.c
+++ b/examples/qos_meter/main.c
@@ -156,7 +156,7 @@ app_pkt_handle(struct rte_mbuf *pkt, uint64_t time)
                &PROFILE,
                time,
                pkt_len,
-               (enum rte_meter_color) input_color);
+               (enum rte_color) input_color);
 
        /* Apply policing and set the output color */
        action = policer_table[input_color][output_color];
-- 
2.21.0

Reply via email to