DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] ixgbe: fix compilation when offload flags disabled
@ 2016-06-27 15:44 Olivier Matz
  2016-06-27 17:05 ` Thomas Monjalon
  2016-07-01  8:02 ` [dpdk-dev] [PATCH v2] net/ixgbe: " Olivier Matz
  0 siblings, 2 replies; 8+ messages in thread
From: Olivier Matz @ 2016-06-27 15:44 UTC (permalink / raw)
  To: dev, helin.zhang, konstantin.ananyev; +Cc: amint

The ixgbe driver does not compile if CONFIG_RTE_IXGBE_RX_OLFLAGS_ENABLE=n
because the macro has not the proper number of parameters.

Fixes: b37b528d957c ("mbuf: add new Rx flags for stripped VLAN")
Reported-by: Amin Tootoonchian <amint@icsi.berkeley.edu>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
---
 drivers/net/ixgbe/ixgbe_rxtx_vec.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ixgbe/ixgbe_rxtx_vec.c b/drivers/net/ixgbe/ixgbe_rxtx_vec.c
index 12190d2..6989fc3 100644
--- a/drivers/net/ixgbe/ixgbe_rxtx_vec.c
+++ b/drivers/net/ixgbe/ixgbe_rxtx_vec.c
@@ -196,7 +196,9 @@ desc_to_olflags_v(__m128i descs[4], uint8_t vlan_flags,
 	rx_pkts[3]->ol_flags = vol.e[3];
 }
 #else
-#define desc_to_olflags_v(desc, rx_pkts) do {} while (0)
+#define desc_to_olflags_v(desc, vlan_flags, rx_pkts) do { \
+		RTE_SET_USED(vlan_flags); \
+	} while (0)
 #endif
 
 /*
-- 
2.8.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-07-05  9:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-27 15:44 [dpdk-dev] [PATCH] ixgbe: fix compilation when offload flags disabled Olivier Matz
2016-06-27 17:05 ` Thomas Monjalon
2016-06-29 10:15   ` Bruce Richardson
2016-06-29 11:35     ` Olivier MATZ
2016-06-29 12:30       ` Bruce Richardson
2016-07-01  8:02 ` [dpdk-dev] [PATCH v2] net/ixgbe: " Olivier Matz
2016-07-01  9:02   ` Ananyev, Konstantin
2016-07-05  9:11     ` Bruce Richardson

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