FreeBSD was not defined in ena_plat.h
ETIME is not defined in FreeBSD.
In file included from DPDK/drivers/net/ena/base/ena_com.h:37:0,
from DPDK/drivers/net/ena/ena_ethdev.h:39,
from DPDK/drivers/net/ena/ena_ethdev.c:41:
DPDK/drivers/net/ena/base/ena_plat.h:48:2: error: #error "Invalid platform"
Fixes:
99ecfbf845b3 ("ena: import communication layer")
Fixes:
9ba7981ec992 ("ena: add communication layer for DPDK")
Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
#else
#include "ena_plat_dpdk.h"
#endif
+#elif defined(__FreeBSD__)
+#include "ena_plat_dpdk.h"
#elif defined(_WIN32)
#include "ena_plat_windows.h"
#else
typedef uint8_t u8;
typedef uint64_t dma_addr_t;
+#ifndef ETIME
+#define ETIME ETIMEDOUT
+#endif
#define ena_atomic32_t rte_atomic32_t
#define ena_mem_handle_t void *