summaryrefslogtreecommitdiff
path: root/drivers/net/ena
diff options
context:
space:
mode:
authorMichal Krawczyk <mk@semihalf.com>2018-06-19 09:58:20 +0200
committerThomas Monjalon <thomas@monjalon.net>2018-06-19 10:20:01 +0200
commit9d7ee7fc689cabc085106579c2842cf2231e360a (patch)
tree629856a7ffa812ba8979f533d84a33150a039c0e /drivers/net/ena
parenta66a83744667f31ee97e18eefa90105c462ed81b (diff)
downloaddpdk-next-eventdev-9d7ee7fc689cabc085106579c2842cf2231e360a.zip
dpdk-next-eventdev-9d7ee7fc689cabc085106579c2842cf2231e360a.tar.gz
dpdk-next-eventdev-9d7ee7fc689cabc085106579c2842cf2231e360a.tar.xz
net/ena: fix FreeBSD build
The FreeBSD define was removed from platform file when HAL was upgraded to newer version. In file included from drivers/net/ena/ena_ethdev.c:45: from drivers/net/ena/ena_ethdev.h:42: from drivers/net/ena/base/ena_com.h:37: drivers/net/ena/base/ena_plat.h:48:2: error: "Invalid platform" Fixes: 3adcba9a8987 ("net/ena: update HAL to the newer version") Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Diffstat (limited to 'drivers/net/ena')
-rw-r--r--drivers/net/ena/base/ena_plat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ena/base/ena_plat.h b/drivers/net/ena/base/ena_plat.h
index 278175f..f829936 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