* [dpdk-dev] [PATCH] bsdapp: fix missing #define for drivers compile
@ 2015-11-04 17:05 Bruce Richardson
2015-11-04 17:25 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Bruce Richardson @ 2015-11-04 17:05 UTC (permalink / raw)
To: dev
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 <bruce.richardson@intel.com>
---
lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h | 2 ++
1 file changed, 2 insertions(+)
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 70a7087..c1995ee 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 */
--
2.4.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] bsdapp: fix missing #define for drivers compile
2015-11-04 17:05 [dpdk-dev] [PATCH] bsdapp: fix missing #define for drivers compile Bruce Richardson
@ 2015-11-04 17:25 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2015-11-04 17:25 UTC (permalink / raw)
To: Bruce Richardson; +Cc: dev
2015-11-04 17:05, Bruce Richardson:
> 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 <bruce.richardson@intel.com>
Applied, thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-04 17:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-04 17:05 [dpdk-dev] [PATCH] bsdapp: fix missing #define for drivers compile Bruce Richardson
2015-11-04 17:25 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).