From: Bruce Richardson Date: Wed, 4 Nov 2015 17:05:57 +0000 (+0000) Subject: eal/bsd: fix build X-Git-Tag: spdx-start~8116 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=620b794e38295fcc1a24ae1139334bffd51f79d6;p=dpdk.git eal/bsd: fix build The i40e driver was using a #define value for the max number of rxtx interrupts supported. This value was defined only for linux, giving an error when compiling on FreeBSD. CC i40e_ethdev.o /usr/home/bruce/dpdk.org/drivers/net/i40e/i40e_ethdev.c:3885:9: fatal error: use of undeclared identifier 'RTE_MAX_RXTX_INTR_VEC_ID' Copying the necessary #define into the FreeBSD EAL header fixes the compile error. Fixes: d37641029ada ("eal/linux: add interrupt vectors") Signed-off-by: Bruce Richardson --- diff --git a/lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h b/lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h index 70a7087362..c1995ee120 100644 --- a/lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h +++ b/lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h @@ -41,6 +41,8 @@ #define RTE_INTR_VEC_ZERO_OFFSET 0 #define RTE_INTR_VEC_RXTX_OFFSET 1 +#define RTE_MAX_RXTX_INTR_VEC_ID 32 + enum rte_intr_handle_type { RTE_INTR_HANDLE_UNKNOWN = 0, RTE_INTR_HANDLE_UIO, /**< uio device handle */