From: Jasvinder Singh Date: Fri, 9 Aug 2019 09:37:13 +0000 (+0100) Subject: examples/qos_meter: fix color type conversion X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f6feb39c20cec3b520eaaef2dde436379e48330a;p=dpdk.git examples/qos_meter: fix color type conversion In APP_MODE_SRTCM_COLOR_AWARE mode, sample app compilation fails due to wrong meter color type conversion. error log- /qos_meter/main.c:error: conversion to incomplete type (enum rte_meter_color) input_color); Fixes: c1656328dbc2 ("meter: replace color definitions") Cc: stable@dpdk.org Reported-by: Yuan Peng Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- diff --git a/examples/qos_meter/main.c b/examples/qos_meter/main.c index ce1f63dc7a..da7afe8be2 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];