[dpdk-dev] [PATCH] qos_meter: Fix compilation with APP_MODE_FWD

Ian Stokes ian.stokes at intel.com
Tue Aug 18 17:55:12 CEST 2015


The qos_meter sample app will fail to compile if APP_MODE
is set to APP_MODE_FWD. This patch changes the variable
name 'color' in main.h to the expected variable name
'input_color' to allow compilation with APP_MODE_FWD.

Signed-off-by: Ian Stokes <ian.stokes at intel.com>
---
 examples/qos_meter/main.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/examples/qos_meter/main.h b/examples/qos_meter/main.h
index 530bf69..08fbcb9 100644
--- a/examples/qos_meter/main.h
+++ b/examples/qos_meter/main.h
@@ -50,7 +50,7 @@ enum policer_action policer_table[e_RTE_METER_COLORS][e_RTE_METER_COLORS] =
 
 #if APP_MODE == APP_MODE_FWD
 
-#define FUNC_METER(a,b,c,d) color, flow_id=flow_id, pkt_len=pkt_len, time=time
+#define FUNC_METER(a,b,c,d) input_color, flow_id=flow_id, pkt_len=pkt_len, time=time
 #define FUNC_CONFIG(a,b)
 #define PARAMS	app_srtcm_params
 #define FLOW_METER int
-- 
1.7.4.1



More information about the dev mailing list