Thread (5 messages) 5 messages, 3 authors, 2015-08-25

Re: [PATCH] qos_meter: Fix compilation with APP_MODE_FWD

From: Thomas Monjalon <hidden>
Date: 2015-08-25 12:38:10

2015-08-18 16:55, Ian Stokes:
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.
Thanks for raising the issue.
quoted hunk ↗ jump to hunk
--- a/examples/qos_meter/main.h
+++ b/examples/qos_meter/main.h
 #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
This patch should not be accepted to discourage build-time options.
Patch for run-time option is welcome.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help