From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shreyansh Jain Subject: Re: [PATCH v5 04/12] eal: integrate bus scan and probe with EAL Date: Mon, 9 Jan 2017 12:04:32 +0530 Message-ID: References: <1482756644-13726-1-git-send-email-shreyansh.jain@nxp.com> <1482758645-23057-1-git-send-email-shreyansh.jain@nxp.com> <1482758645-23057-5-git-send-email-shreyansh.jain@nxp.com> <9B0331B6EBBD0E4684FBFAEDA55776F93D482B72@HASMSX110.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" , "thomas.monjalon@6wind.com" To: "Rosen, Rami" , "david.marchand@6wind.com" Return-path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0069.outbound.protection.outlook.com [104.47.37.69]) by dpdk.org (Postfix) with ESMTP id C3CAE1E2B for ; Mon, 9 Jan 2017 07:31:05 +0100 (CET) In-Reply-To: <9B0331B6EBBD0E4684FBFAEDA55776F93D482B72@HASMSX110.ger.corp.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hello, On Sunday 08 January 2017 05:51 PM, Rosen, Rami wrote: > Hi, > .... > .... > > diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index 2206277..2c223de 100644 > --- a/lib/librte_eal/bsdapp/eal/eal.c > +++ b/lib/librte_eal/bsdapp/eal/eal.c > .... > > +/* Scan all the buses for registering devices */ int > +rte_eal_bus_scan(void) > +{ > + int ret; > + struct rte_bus *bus = NULL; > + > + TAILQ_FOREACH(bus, &rte_bus_list, next) { > + ret = bus->scan(bus); > + if (ret) { > + RTE_LOG(ERR, EAL, "Scan for (%s) bus failed.\n", > + bus->name); > + /* TODO: Should error on a particular bus block scan > + * for all others? > + */ > + return ret; > + } > + } > + > + return 0; > +} > + > > Nitpick - the return type of rte_eal_bus_scan() is int and not void: Thanks for review. I will fix this before sending v6. > > * Scan all the buses attached to the framework. > + * > + * @param void > + * @return void > + */ > +int rte_eal_bus_scan(void); > > > Rami Rosen > - Shreyansh