examples/qos_meter: fix meter color type conversion
PATCH 1/1 examples/qos_meter: fix meter 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);
--- examples/qos_meter/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
examples/qos_meter/main.c +1 -1
@@ -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];
Signature · 1 line
2.21.0
Quoted 39 lines
-----Original Message-----
From: Singh, Jasvinder
Sent: Friday, August 9, 2019 10:37 AM
To: [email protected]
Cc: Dumitrescu, Cristian <[email protected]>; Peng, Yuan <[email protected]>
Subject: [PATCH] examples/qos_meter: fix meter color type conversionIn
APP_MODE_SRTCM_COLOR_AWAREmode, 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 (enumrte_meter_color)input_color);Signed-off-by Jasvinder Singh <[email protected]>Reported-by Peng Yuan <[email protected]>--- examples/qos_meter/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)examples/qos_meter/main.c +1
-2@@ -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]; --
Quoted 1 line
2.21.0
Thomas Monjalon
Applied09/08/2019 13:56, Dumitrescu, Cristian:
Quoted 5 lines
From: Singh, Jasvinder
Quoted 4 lines
In
APP_MODE_SRTCM_COLOR_AWAREmode, sample app compilation fails due to wrong meter color type conversion.Fixes fc8a10d8527a ("examples/qos_meter: add color policy")
This is not the root cause. Replaced with:
Quoted 3 lines
Quoted 3 lines
error log-
/qos_meter/main.c:error: conversion to incomplete type (enumrte_meter_color)input_color);
This log should be before "Fixes" line.
Quoted 2 lines
Quoted 2 lines
Signed-off-by Jasvinder Singh <[email protected]>Reported-by Peng Yuan <[email protected]>
Reported-by should be before SoB line (chronological order).
Quoted 1 line
Applied