net/ena: fix FreeBSD build
diff mbox series

Message ID 20180619075820.10639-1-mk@semihalf.com
State Accepted, archived
Headers show
Series
  • net/ena: fix FreeBSD build
Related show

Checks

Context Check Description
ci/checkpatch warning coding style issues
ci/Intel-compilation success Compilation OK

Commit Message

Michał Krawczyk June 19, 2018, 7:58 a.m. UTC
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(+)

Comments

Thomas Monjalon June 19, 2018, 8:23 a.m. UTC | #1
19/06/2018 09:58, Michal Krawczyk:
> 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>

Applied, thanks

Patch
diff mbox series

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