From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 259CB231C for ; Wed, 4 Nov 2015 18:06:24 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 04 Nov 2015 09:06:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,243,1444719600"; d="scan'208";a="827012285" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga001.fm.intel.com with ESMTP; 04 Nov 2015 09:06:04 -0800 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id tA4H5vL7017852; Wed, 4 Nov 2015 17:05:57 GMT Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id tA4H5vXA017846; Wed, 4 Nov 2015 17:05:57 GMT Received: (from bricha3@localhost) by sivswdev01.ir.intel.com with id tA4H5vOM017842; Wed, 4 Nov 2015 17:05:57 GMT From: Bruce Richardson To: dev@dpdk.org Date: Wed, 4 Nov 2015 17:05:57 +0000 Message-Id: <1446656757-17809-1-git-send-email-bruce.richardson@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] bsdapp: fix missing #define for drivers compile X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Nov 2015 17:06:25 -0000 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 --- 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