* [dpdk-dev] [PATCH] qos_meter: Fix compilation with APP_MODE_FWD
@ 2015-08-18 15:55 Ian Stokes
2015-08-18 22:36 ` Mcnamara, John
2015-08-25 12:36 ` Thomas Monjalon
0 siblings, 2 replies; 5+ messages in thread
From: Ian Stokes @ 2015-08-18 15:55 UTC (permalink / raw)
To: dev
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@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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [PATCH] qos_meter: Fix compilation with APP_MODE_FWD
2015-08-18 15:55 [dpdk-dev] [PATCH] qos_meter: Fix compilation with APP_MODE_FWD Ian Stokes
@ 2015-08-18 22:36 ` Mcnamara, John
2015-08-25 12:36 ` Thomas Monjalon
1 sibling, 0 replies; 5+ messages in thread
From: Mcnamara, John @ 2015-08-18 22:36 UTC (permalink / raw)
To: Stokes, Ian, dev
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ian Stokes
> Sent: Tuesday, August 18, 2015 8:55 AM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] qos_meter: Fix compilation with APP_MODE_FWD
>
> 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@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [PATCH] qos_meter: Fix compilation with APP_MODE_FWD
2015-08-18 15:55 [dpdk-dev] [PATCH] qos_meter: Fix compilation with APP_MODE_FWD Ian Stokes
2015-08-18 22:36 ` Mcnamara, John
@ 2015-08-25 12:36 ` Thomas Monjalon
2015-08-25 13:34 ` Mcnamara, John
1 sibling, 1 reply; 5+ messages in thread
From: Thomas Monjalon @ 2015-08-25 12:36 UTC (permalink / raw)
To: dev
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [PATCH] qos_meter: Fix compilation with APP_MODE_FWD
2015-08-25 12:36 ` Thomas Monjalon
@ 2015-08-25 13:34 ` Mcnamara, John
2015-08-25 13:42 ` Thomas Monjalon
0 siblings, 1 reply; 5+ messages in thread
From: Mcnamara, John @ 2015-08-25 13:34 UTC (permalink / raw)
To: Thomas Monjalon, dev
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon
> Sent: Tuesday, August 25, 2015 1:37 PM
> To: dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] qos_meter: Fix compilation with APP_MODE_FWD
>
> > --- 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.
Hi,
The patch is fixing a compilation issue, which seems reasonable. It isn't introducing a build time option, it is merely fixing an typo in an existing one.
Yes, it would be better not to have this build time option (in which case the issue would have been found sooner) but that isn't the responsibility of the person submitting this patch.
That is something that should be pushed back to the author/maintainer.
In the meantime this patch is still valid and should be applied.
John
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [PATCH] qos_meter: Fix compilation with APP_MODE_FWD
2015-08-25 13:34 ` Mcnamara, John
@ 2015-08-25 13:42 ` Thomas Monjalon
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Monjalon @ 2015-08-25 13:42 UTC (permalink / raw)
To: Mcnamara, John; +Cc: dev
2015-08-25 13:34, Mcnamara, John:
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon
> > This patch should not be accepted to discourage build-time options.
> > Patch for run-time option is welcome.
>
> The patch is fixing a compilation issue, which seems reasonable. It isn't
> introducing a build time option, it is merely fixing an typo in an
> existing one.
Yes
> Yes, it would be better not to have this build time option (in which case
> the issue would have been found sooner) but that isn't the responsibility
> of the person submitting this patch.
Yes
> That is something that should be pushed back to the author/maintainer.
Yes
> In the meantime this patch is still valid and should be applied.
No
After trying to request this kind of cleanup for several months, nothing
happens. Maybe it will be more efficient to leave bugs until someone
submit a real cleanup.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-08-25 13:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-18 15:55 [dpdk-dev] [PATCH] qos_meter: Fix compilation with APP_MODE_FWD Ian Stokes
2015-08-18 22:36 ` Mcnamara, John
2015-08-25 12:36 ` Thomas Monjalon
2015-08-25 13:34 ` Mcnamara, John
2015-08-25 13:42 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).