bsdapp: fix missing #define for drivers compile
PATCH 1/1 bsdapp: fix missing #define for drivers compile
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.
--- lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h | 2 ++ 1 file changed, 2 insertions(+)
lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h +2 -0
@@ -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 */
Signature · 1 line
2.4.2
Thomas Monjalon
Applied2015-11-04 17:05, Bruce Richardson:
Quoted 8 lines
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'
Quoted 6 lines
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 <[email protected]>
Applied, thanks