From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v6 3/8] eal/bsd: dummy for new intr definition Date: Fri, 27 Feb 2015 15:22:18 +0100 Message-ID: <2186284.tU91hJycor@xps13> References: <1424710542-14637-1-git-send-email-danny.zhou@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: dev-VfR2kkLFssw@public.gmane.org To: "Liang, Cunming" Return-path: In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 2015-02-27 11:21, Liang, Cunming: > From: David Marchand [mailto:david.marchand-pdR9zngts4EAvxtiuMwx3w@public.gmane.org] > > On Fri, Feb 27, 2015 at 5:56 AM, Cunming Liang wrote: > > > @@ -49,6 +51,8 @@ enum rte_intr_handle_type { > > >=20 > > > struct rte_intr_handle { > > > =20 > > > int fd; /**< file descriptor */ > > > enum rte_intr_handle_type type; /**< handle type */ > > >=20 > > > + int max_intr; /**< max interrupt reque= sted */ > > > + uint32_t vec_num[VFIO_MAX_QUEUE_ID]; /**< rxtx intr vecto= r number */ > > > }; > >=20 > > No need to add those since this is not supported for bsd. >=20 > [Liang, Cunming] max_intr is used in dev_init for pci_dev->intr_handl= e init. > Vec_num is used in ethdev API rx_intr_vec_get. Without it, BSD macro = will > used for each of the reference place. > As they=E2=80=99re quite generic, even bsd will require either max_in= tr or vec > mapping table. Is it needed to build and run DPDK on FreeBSD?