Re: [dpdk-dev] [PATCH v11 12/13] pci: use bus driver for attach/detach

2017-02-15 Thread Jan Blunck
On Wed, Feb 15, 2017 at 12:26 PM, Thomas Monjalon wrote: > 2017-02-15 12:08, Jan Blunck: >> > int rte_eal_dev_attach(const char *name, const char *devargs) >> > { >> > - struct rte_pci_addr addr; >> > + int ret = 1; >> > + struct rte_bus *bus; >> > >> > if (name == NULL

Re: [dpdk-dev] [PATCH v11 12/13] pci: use bus driver for attach/detach

2017-02-15 Thread Thomas Monjalon
2017-02-15 12:08, Jan Blunck: > > int rte_eal_dev_attach(const char *name, const char *devargs) > > { > > - struct rte_pci_addr addr; > > + int ret = 1; > > + struct rte_bus *bus; > > > > if (name == NULL || devargs == NULL) { > > RTE_LOG(ERR, EAL, "Inval

Re: [dpdk-dev] [PATCH v11 12/13] pci: use bus driver for attach/detach

2017-02-15 Thread Jan Blunck
On Thu, Jan 19, 2017 at 5:45 AM, Thomas Monjalon wrote: > From: Shreyansh Jain > > Given a bus, attach and detach callbacks allow the implementation to > handles calls from EAL for attaching or detaching a named device. > > Signed-off-by: Shreyansh Jain > Reviewed-by: Ferruh Yigit > --- > lib/

[dpdk-dev] [PATCH v11 12/13] pci: use bus driver for attach/detach

2017-01-18 Thread Thomas Monjalon
From: Shreyansh Jain Given a bus, attach and detach callbacks allow the implementation to handles calls from EAL for attaching or detaching a named device. Signed-off-by: Shreyansh Jain Reviewed-by: Ferruh Yigit --- lib/librte_eal/bsdapp/eal/eal_pci.c | 2 + lib/librte_eal/common/eal_com