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

Thomas Monjalon thomas.monjalon at 6wind.com
Tue Aug 25 14:36:59 CEST 2015


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.

> --- 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.


More information about the dev mailing list