> -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
>
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 =
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;
> +
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
4 matches
Mail list logo