DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/ena: fix FreeBSD build
@ 2018-06-19  7:58 Michal Krawczyk
  2018-06-19  8:23 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Krawczyk @ 2018-06-19  7:58 UTC (permalink / raw)
  To: thomas, Marcin Wojtas, Michal Krawczyk, Guy Tzalik, Evgeny Schemeilin
  Cc: dev, matua

The FreeBSD define was removed from platform file when HAL was upgraded
to newer version.

In file included from dpdk/drivers/net/ena/ena_ethdev.c:45:
   		 from dpdk/drivers/net/ena/ena_ethdev.h:42:
		 from dpdk/drivers/net/ena/base/ena_com.h:37:
dpdk/drivers/net/ena/base/ena_plat.h:48:2: error: "Invalid platform"

Fixes: 3adcba9a8987 ("net/ena: update HAL to the newer version")
Cc: mk@semihalf.com

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
---
 drivers/net/ena/base/ena_plat.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/net/ena/base/ena_plat.h b/drivers/net/ena/base/ena_plat.h
index 278175f39..f829936b2 100644
--- a/drivers/net/ena/base/ena_plat.h
+++ b/drivers/net/ena/base/ena_plat.h
@@ -42,6 +42,12 @@
 #else
 #include "ena_plat_dpdk.h"
 #endif
+#elif defined(__FreeBSD__)
+#if defined(_KERNEL)
+#include "ena_plat_fbsd.h"
+#else
+#include "ena_plat_dpdk.h"
+#endif
 #elif defined(_WIN32)
 #include "ena_plat_windows.h"
 #else
-- 
2.14.1

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

end of thread, other threads:[~2018-06-19  8:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-19  7:58 [dpdk-dev] [PATCH] net/ena: fix FreeBSD build Michal Krawczyk
2018-06-19  8:23 ` 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).