From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Marchand Subject: Re: [ethdev] Multiple devices with single PCI Date: Thu, 28 Aug 2014 14:42:02 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "dev-VfR2kkLFssw@public.gmane.org" To: =?UTF-8?B?7J206re87ZmN?= 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" Hello, On Thu, Aug 28, 2014 at 12:54 PM, =EC=9D=B4=EA=B7=BC=ED=99=8D wrote: > I found that DPDK has an abstraction for having multiple devices with > single PCI. > (RTE_PCI_DRV_MULTIPLE flag) > However, their is a naming collision while registering multiple devices. > Here is my possible solution. > - Actually, I think this flag could just disappear. It had been added at a time when ethdev objects could only be created through eth_drivers. Right now, a pci driver can create ethdev objects using rte_eth_dev_allocate(thenameyouwant). So I would rather propose you convert your driver from a eth_driver to a pci_driver. It is not that hard, you only need to allocate your own private structure and ensure the mandatory fields are filled. You can look at rte_eth_dev_init() to see what is needed. - Thomas, RTE_PCI_DRV_MULTIPLE deprecation for 1.8.x ? --=20 David Marchand