summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasvinder Singh <jasvinder.singh@intel.com>2019-08-09 10:37:13 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-08-11 00:07:31 +0200
commitf6feb39c20cec3b520eaaef2dde436379e48330a (patch)
tree73a875fc517c5e08a313e60bcac93d33582bcbb3
parent3227d098539a400c617c955c969c3ffe5ba4809b (diff)
downloaddpdk-f6feb39c20cec3b520eaaef2dde436379e48330a.zip
dpdk-f6feb39c20cec3b520eaaef2dde436379e48330a.tar.gz
dpdk-f6feb39c20cec3b520eaaef2dde436379e48330a.tar.xz
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 <yuan.peng@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
-rw-r--r--examples/qos_meter/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qos_meter/main.c b/examples/qos_meter/main.c
index ce1f63d..da7afe8 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];