From f6feb39c20cec3b520eaaef2dde436379e48330a Mon Sep 17 00:00:00 2001 From: Jasvinder Singh Date: Fri, 9 Aug 2019 10:37:13 +0100 Subject: [PATCH] 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 --- 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 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]; -- 2.20.1