From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v8 17/25] drivers: convert PMD_VDEV drivers to use rte_vdev_driver Date: Mon, 29 Aug 2016 17:57:20 +0100 Message-ID: <57C46970.7020101@intel.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1472219823-29486-1-git-send-email-shreyansh.jain@nxp.com> <1472219823-29486-18-git-send-email-shreyansh.jain@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: viktorin@rehivetech.com, david.marchand@6wind.com, thomas.monjalon@6wind.com, hemant.agrawal@nxp.com To: Shreyansh Jain , dev@dpdk.org Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 3C01E29D1 for ; Mon, 29 Aug 2016 18:57:24 +0200 (CEST) In-Reply-To: <1472219823-29486-18-git-send-email-shreyansh.jain@nxp.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 8/26/2016 2:56 PM, Shreyansh Jain wrote: > All PMD_VDEV drivers can now use rte_vdev_driver instead of the > rte_driver (which is embedded in the rte_vdev_driver). > > Signed-off-by: Jan Viktorin > Signed-off-by: Shreyansh Jain > --- ... > diff --git a/drivers/net/xenvirt/rte_eth_xenvirt.c b/drivers/net/xenvirt/rte_eth_xenvirt.c > index 6b15381..fa00e52 100644 > --- a/drivers/net/xenvirt/rte_eth_xenvirt.c > +++ b/drivers/net/xenvirt/rte_eth_xenvirt.c > @@ -759,12 +759,14 @@ rte_pmd_xenvirt_devuninit(const char *name) > return 0; > } xenvirt missing header file rte_vdev.h: CC rte_eth_xenvirt.o .../drivers/net/xenvirt/rte_eth_xenvirt.c:762:31: error: variable has incomplete type 'struct rte_vdev_driver' static struct rte_vdev_driver pmd_xenvirt_drv = { > > -static struct rte_driver pmd_xenvirt_drv = { > - .type = PMD_VDEV, > - .init = rte_pmd_xenvirt_devinit, > - .uninit = rte_pmd_xenvirt_devuninit, > +static struct rte_vdev_driver pmd_xenvirt_drv = { > + .driver = { > + .type = PMD_VDEV, > + .init = rte_pmd_xenvirt_devinit, > + .uninit = rte_pmd_xenvirt_devuninit > + }, > }; > > -PMD_REGISTER_DRIVER(pmd_xenvirt_drv, eth_xenvirt); > +DRIVER_REGISTER_VDEV(eth_xenvirt, pmd_xenvirt_drv); > DRIVER_REGISTER_PARAM_STRING(eth_xenvirt, > "mac="); >