* [dpdk-dev] [PATCH v2] e1000: mark rxq with RTE_SET_USED
@ 2015-10-28 16:08 Harry van Haaren
2015-10-28 16:18 ` De Lara Guarch, Pablo
0 siblings, 1 reply; 3+ messages in thread
From: Harry van Haaren @ 2015-10-28 16:08 UTC (permalink / raw)
To: dev
This patch marks rxq with RTE_SET_USED in
rx_desc_hlen_type_rss_to_pkt_flags(), when
ieee1588 is disabled. Previously a compilation
error occurred on unused-parameter.
Fixes: 1ce6591e238a ("igb: fix ieee1588 frame identification in i210")
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
---
v2: Fixed Fixes line (the irony)
drivers/net/e1000/igb_rxtx.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c
index 66bc3f0..d734a19 100644
--- a/drivers/net/e1000/igb_rxtx.c
+++ b/drivers/net/e1000/igb_rxtx.c
@@ -732,6 +732,8 @@ rx_desc_hlen_type_rss_to_pkt_flags(struct igb_rx_queue *rxq, uint32_t hl_tp_rs)
pkt_flags |= ip_pkt_etqf_map[(hl_tp_rs >> 12) & 0x07];
else
pkt_flags |= ip_pkt_etqf_map[(hl_tp_rs >> 4) & 0x07];
+#else
+ RTE_SET_USED(rxq);
#endif
return pkt_flags;
--
1.9.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH v2] e1000: mark rxq with RTE_SET_USED
2015-10-28 16:08 [dpdk-dev] [PATCH v2] e1000: mark rxq with RTE_SET_USED Harry van Haaren
@ 2015-10-28 16:18 ` De Lara Guarch, Pablo
2015-10-28 17:13 ` Thomas Monjalon
0 siblings, 1 reply; 3+ messages in thread
From: De Lara Guarch, Pablo @ 2015-10-28 16:18 UTC (permalink / raw)
To: Van Haaren, Harry, dev
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Harry van Haaren
> Sent: Wednesday, October 28, 2015 4:08 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH v2] e1000: mark rxq with RTE_SET_USED
>
> This patch marks rxq with RTE_SET_USED in
> rx_desc_hlen_type_rss_to_pkt_flags(), when
> ieee1588 is disabled. Previously a compilation
> error occurred on unused-parameter.
>
> Fixes: 1ce6591e238a ("igb: fix ieee1588 frame identification in i210")
>
> Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
> ---
>
> v2: Fixed Fixes line (the irony)
>
> drivers/net/e1000/igb_rxtx.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c
> index 66bc3f0..d734a19 100644
> --- a/drivers/net/e1000/igb_rxtx.c
> +++ b/drivers/net/e1000/igb_rxtx.c
> @@ -732,6 +732,8 @@ rx_desc_hlen_type_rss_to_pkt_flags(struct
> igb_rx_queue *rxq, uint32_t hl_tp_rs)
> pkt_flags |= ip_pkt_etqf_map[(hl_tp_rs >> 12) & 0x07];
> else
> pkt_flags |= ip_pkt_etqf_map[(hl_tp_rs >> 4) & 0x07];
> +#else
> + RTE_SET_USED(rxq);
> #endif
>
> return pkt_flags;
> --
> 1.9.1
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH v2] e1000: mark rxq with RTE_SET_USED
2015-10-28 16:18 ` De Lara Guarch, Pablo
@ 2015-10-28 17:13 ` Thomas Monjalon
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2015-10-28 17:13 UTC (permalink / raw)
To: Van Haaren, Harry; +Cc: dev
2015-10-28 16:18, De Lara Guarch, Pablo:
> > This patch marks rxq with RTE_SET_USED in
> > rx_desc_hlen_type_rss_to_pkt_flags(), when
> > ieee1588 is disabled. Previously a compilation
> > error occurred on unused-parameter.
> >
> > Fixes: 1ce6591e238a ("igb: fix ieee1588 frame identification in i210")
> >
> > Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
>
> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Applied, thanks
To avoid such break, we must check carefully the compilation with
different combinations of options.
Hope the automated tests will help us more in the near future.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-28 17:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-28 16:08 [dpdk-dev] [PATCH v2] e1000: mark rxq with RTE_SET_USED Harry van Haaren
2015-10-28 16:18 ` De Lara Guarch, Pablo
2015-10-28 17:13 ` 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).