Re: [dpdk-dev] [PATCH v5 3/5] eal: add bus pointer in device structure

2018-10-04 Thread Thomas Monjalon
04/10/2018 11:31, Gaëtan Rivet: > On Thu, Oct 04, 2018 at 01:10:44AM +0200, Thomas Monjalon wrote: > > When a device is added with a devargs (hotplug or whitelist), > > the bus pointer can be retrieved via its devargs. > > But there is no such devargs.bus in case of standard scan. > > > > A pointe

Re: [dpdk-dev] [PATCH v5 3/5] eal: add bus pointer in device structure

2018-10-04 Thread Gaëtan Rivet
On Thu, Oct 04, 2018 at 01:10:44AM +0200, Thomas Monjalon wrote: > When a device is added with a devargs (hotplug or whitelist), > the bus pointer can be retrieved via its devargs. > But there is no such devargs.bus in case of standard scan. > > A pointer to the rte_bus handle is added to rte_devi

[dpdk-dev] [PATCH v5 3/5] eal: add bus pointer in device structure

2018-10-03 Thread Thomas Monjalon
When a device is added with a devargs (hotplug or whitelist), the bus pointer can be retrieved via its devargs. But there is no such devargs.bus in case of standard scan. A pointer to the rte_bus handle is added to rte_device. When a device is allocated (during a scan), the pointer to its bus is a