Re: [dpdk-dev] [PATCH 7/9] bus: add helper to find a bus from a device name

2017-06-12 Thread Gaëtan Rivet
On Sat, Jun 10, 2017 at 10:50:12AM +0200, Jan Blunck wrote: > On Thu, Jun 8, 2017 at 2:51 PM, Gaëtan Rivet wrote: > > On Thu, Jun 08, 2017 at 01:40:46PM +0200, Jan Blunck wrote: > >> On Thu, Jun 8, 2017 at 1:36 PM, Gaëtan Rivet > >> wrote: > >> > On Thu, Jun 08, 2017 at 12:45:17PM +0200, Jan Blu

Re: [dpdk-dev] [PATCH 7/9] bus: add helper to find a bus from a device name

2017-06-10 Thread Jan Blunck
On Thu, Jun 8, 2017 at 2:51 PM, Gaëtan Rivet wrote: > On Thu, Jun 08, 2017 at 01:40:46PM +0200, Jan Blunck wrote: >> On Thu, Jun 8, 2017 at 1:36 PM, Gaëtan Rivet wrote: >> > On Thu, Jun 08, 2017 at 12:45:17PM +0200, Jan Blunck wrote: >> >> On Wed, Jun 7, 2017 at 10:03 PM, Gaëtan Rivet >> >> wro

Re: [dpdk-dev] [PATCH 7/9] bus: add helper to find a bus from a device name

2017-06-08 Thread Gaëtan Rivet
On Thu, Jun 08, 2017 at 01:40:46PM +0200, Jan Blunck wrote: > On Thu, Jun 8, 2017 at 1:36 PM, Gaëtan Rivet wrote: > > On Thu, Jun 08, 2017 at 12:45:17PM +0200, Jan Blunck wrote: > >> On Wed, Jun 7, 2017 at 10:03 PM, Gaëtan Rivet > >> wrote: > >> > On Wed, Jun 07, 2017 at 07:28:07PM +0200, Jan Bl

Re: [dpdk-dev] [PATCH 7/9] bus: add helper to find a bus from a device name

2017-06-08 Thread Jan Blunck
On Thu, Jun 8, 2017 at 1:36 PM, Gaëtan Rivet wrote: > On Thu, Jun 08, 2017 at 12:45:17PM +0200, Jan Blunck wrote: >> On Wed, Jun 7, 2017 at 10:03 PM, Gaëtan Rivet wrote: >> > On Wed, Jun 07, 2017 at 07:28:07PM +0200, Jan Blunck wrote: >> >> On Wed, May 24, 2017 at 5:12 PM, Gaetan Rivet >> >> wr

Re: [dpdk-dev] [PATCH 7/9] bus: add helper to find a bus from a device name

2017-06-08 Thread Gaëtan Rivet
On Thu, Jun 08, 2017 at 12:45:17PM +0200, Jan Blunck wrote: > On Wed, Jun 7, 2017 at 10:03 PM, Gaëtan Rivet wrote: > > On Wed, Jun 07, 2017 at 07:28:07PM +0200, Jan Blunck wrote: > >> On Wed, May 24, 2017 at 5:12 PM, Gaetan Rivet > >> wrote: > >> > Find which bus should be able to parse this dev

Re: [dpdk-dev] [PATCH 7/9] bus: add helper to find a bus from a device name

2017-06-08 Thread Jan Blunck
On Wed, Jun 7, 2017 at 10:03 PM, Gaëtan Rivet wrote: > On Wed, Jun 07, 2017 at 07:28:07PM +0200, Jan Blunck wrote: >> On Wed, May 24, 2017 at 5:12 PM, Gaetan Rivet wrote: >> > Find which bus should be able to parse this device name into an internal >> > device representation. >> > >> >> No, pleas

Re: [dpdk-dev] [PATCH 7/9] bus: add helper to find a bus from a device name

2017-06-07 Thread Gaëtan Rivet
On Wed, Jun 07, 2017 at 07:28:07PM +0200, Jan Blunck wrote: > On Wed, May 24, 2017 at 5:12 PM, Gaetan Rivet wrote: > > Find which bus should be able to parse this device name into an internal > > device representation. > > > > No, please don't add this. One should know to what bus a device > belo

Re: [dpdk-dev] [PATCH 7/9] bus: add helper to find a bus from a device name

2017-06-07 Thread Jan Blunck
On Wed, May 24, 2017 at 5:12 PM, Gaetan Rivet wrote: > Find which bus should be able to parse this device name into an internal > device representation. > No, please don't add this. One should know to what bus a device belongs to before plugging it. Artificially encoding the parent bus into the d

[dpdk-dev] [PATCH 7/9] bus: add helper to find a bus from a device name

2017-05-24 Thread Gaetan Rivet
Find which bus should be able to parse this device name into an internal device representation. Signed-off-by: Gaetan Rivet --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 + lib/librte_eal/common/eal_common_bus.c | 15 +++ lib/librte_eal/common/include/rte_bus.h