Re: [dpdk-dev] [PATCH v6 09/11] pci: implement find_device bus operation

2017-06-28 Thread Richardson, Bruce
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Gaëtan Rivet > Sent: Wednesday, June 28, 2017 10:18 AM > To: Stephen Hemminger > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v6 09/11] pci: implement find_device bus > operation >

Re: [dpdk-dev] [PATCH v6 09/11] pci: implement find_device bus operation

2017-06-28 Thread Gaëtan Rivet
On Tue, Jun 27, 2017 at 04:35:14PM -0700, Stephen Hemminger wrote: > On Tue, 27 Jun 2017 18:11:16 +0200 > Gaetan Rivet wrote: > > > + int start_found = !!(start == NULL); > > + > > + FOREACH_DEVICE_ON_PCIBUS(dev) { > > + if (!start_found) { > > + if (&dev->device =

Re: [dpdk-dev] [PATCH v6 09/11] pci: implement find_device bus operation

2017-06-27 Thread Stephen Hemminger
On Tue, 27 Jun 2017 18:11:16 +0200 Gaetan Rivet wrote: > + int start_found = !!(start == NULL); > + > + FOREACH_DEVICE_ON_PCIBUS(dev) { > + if (!start_found) { > + if (&dev->device == start) > + start_found = 1; > +

[dpdk-dev] [PATCH v6 09/11] pci: implement find_device bus operation

2017-06-27 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/eal_common_pci.c | 21 + 1 file changed, 21 insertions(+) diff --git a/lib/librte_eal/common/eal_common_pci.c b/lib/librte_eal/common/eal_common_pci.c index 78b097e..ab55041 100644 --- a/lib/librte_eal/common/eal_common_p