DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/af_packet: fix build failure because of unused parameter
@ 2017-09-25  6:50 Andrew Rybchenko
  2017-09-25  8:42 ` Ferruh Yigit
  2017-09-25 12:52 ` Ferruh Yigit
  0 siblings, 2 replies; 11+ messages in thread
From: Andrew Rybchenko @ 2017-09-25  6:50 UTC (permalink / raw)
  To: dev; +Cc: Ferruh Yigit, Chas Williams

Failure happens on build using:
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)

Fixes: 0d16c17ae7a4 ("net/af_packet: make qdisc bypass configurable")

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
---
May be the right solution in fact remove PACKET_QDISC_BYPASS conditional
completely. If below solution is accepted, feel free to squash it into
the original patch.

 drivers/net/af_packet/rte_eth_af_packet.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c
index 8089eda..541302c 100644
--- a/drivers/net/af_packet/rte_eth_af_packet.c
+++ b/drivers/net/af_packet/rte_eth_af_packet.c
@@ -707,6 +707,8 @@ rte_pmd_init_internals(struct rte_vdev_device *dev,
 			        pair->value);
 			goto error;
 		}
+#else
+		RTE_SET_USED(qdisc_bypass);
 #endif
 
 		rc = setsockopt(qsockfd, SOL_PACKET, PACKET_RX_RING, req, sizeof(*req));
-- 
2.7.4

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

end of thread, other threads:[~2017-10-05 18:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-25  6:50 [dpdk-dev] [PATCH] net/af_packet: fix build failure because of unused parameter Andrew Rybchenko
2017-09-25  8:42 ` Ferruh Yigit
2017-09-25  9:04   ` Andrew Rybchenko
2017-09-25  9:40   ` Bruce Richardson
2017-09-25  9:53     ` Ferruh Yigit
2017-09-25 10:06       ` Ferruh Yigit
2017-09-25 12:49         ` Ferruh Yigit
2017-09-25 14:24         ` Thomas Monjalon
2017-09-25 12:52 ` Ferruh Yigit
2017-09-25 12:53   ` Ferruh Yigit
2017-10-05 18:05     ` Ferruh Yigit

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