From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <shreyansh.jain@nxp.com>
Received: from EUR01-VE1-obe.outbound.protection.outlook.com
 (mail-ve1eur01on0040.outbound.protection.outlook.com [104.47.1.40])
 by dpdk.org (Postfix) with ESMTP id ADDF32B83
 for <dev@dpdk.org>; Wed, 18 Jan 2017 06:15:37 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; 
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version;
 bh=PFw2TTmtHh+LYtZbaEpZBJivAazQ18hB6LkNjICxaWA=;
 b=ahhbvn3bsu/83HEP25IHY5iYtRXikOdK/MiWCZx+dQupi5STisyOgksiVsNpsRDM8nFhFNuHHQvZrPn1b7CTxOho9a752ebXH3e01XRlEwdqJ0UYUayQtwLvOp7DTzdxDCJfmJZVz9uNuzJ43Rp5Mm37G/gqTAFDhUbYZ7vDTvo=
Received: from DB5PR0401MB2054.eurprd04.prod.outlook.com (10.166.11.137) by
 DB5PR0401MB2053.eurprd04.prod.outlook.com (10.166.11.136) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
 15.1.845.12; Wed, 18 Jan 2017 05:15:36 +0000
Received: from DB5PR0401MB2054.eurprd04.prod.outlook.com ([10.166.11.137]) by
 DB5PR0401MB2054.eurprd04.prod.outlook.com ([10.166.11.137]) with
 mapi id 15.01.0845.014; Wed, 18 Jan 2017 05:15:36 +0000
From: Shreyansh Jain <shreyansh.jain@nxp.com>
To: Thomas Monjalon <thomas.monjalon@6wind.com>
CC: "dev@dpdk.org" <dev@dpdk.org>
Thread-Topic: [PATCH v8 4/9] eal/bus: support for scanning of bus
Thread-Index: AQHScMaD5NwGrKoLW0WgAGpNIhXNa6E9U7YAgABdpkA=
Date: Wed, 18 Jan 2017 05:15:15 +0000
Deferred-Delivery: Wed, 18 Jan 2017 05:14:24 +0000
Message-ID: <DB5PR0401MB2054BE8E4F3E4635B739CBD2907F0@DB5PR0401MB2054.eurprd04.prod.outlook.com>
References: <1484647774-28984-1-git-send-email-shreyansh.jain@nxp.com>
 <1484660264-6531-1-git-send-email-shreyansh.jain@nxp.com>
 <1484660264-6531-5-git-send-email-shreyansh.jain@nxp.com>
 <1666796.CLgGY7A5Bb@xps13>
In-Reply-To: <1666796.CLgGY7A5Bb@xps13>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=none (sender IP is )
 smtp.mailfrom=shreyansh.jain@nxp.com; 
x-originating-ip: [192.88.169.1]
x-ms-office365-filtering-correlation-id: 56a095e5-46e3-47d4-2fee-08d43f61095b
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001);
 SRVR:DB5PR0401MB2053; 
x-microsoft-exchange-diagnostics: 1; DB5PR0401MB2053;
 7:AebFI/UWYa4vnGmnIrRR60BXVMvGNisA1yW1lKg/T4UzopvLDCkqlNDCMg5VQx6lSLtwp3rDhUvFmsEj2odbIuXU+neqw3Xd0MpCentOwwXPDAo770/UW/ZDUagarkUlG5KdMDIlrK24sWNuBEI3FVotDM6vtlPNxvjs1O3WBwP0c7ZyeOQvEn/Cmi5WPoF1Cz/eK3tDwyZbNWrnkiTUmxiuqY3JirOTysdJP8kPVblRTIFGN4bt2Bk2A2oOR+hGiCUpb1bdV8+COGPawqXNtlq3tt+SqYu60eAXxxDA0jPEeLZ6E9/tV+1n6y0CtomHOtHyRDQYlbGczGORFXfiwlVzEBRUgeuSF4EpczDo2IcRk2/gqTP1PkTjaooe3MjfsGDEPEWNceQOUuuHk6N5F9uKYeGDRR4HZlsCYY3mM/g11b116oCZ/zMSLXyyV6CNWGSxTpVic3njPvEaZOKweA==
x-microsoft-antispam-prvs: <DB5PR0401MB2053C518E068CE53BAA065D7907F0@DB5PR0401MB2053.eurprd04.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(185117386973197);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
 RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123564025)(20161123562025)(20161123560025)(6072148)(6047074);
 SRVR:DB5PR0401MB2053; BCL:0; PCL:0; RULEID:; SRVR:DB5PR0401MB2053; 
x-forefront-prvs: 01917B1794
x-forefront-antispam-report: SFV:NSPM;
 SFS:(10009020)(6009001)(7916002)(39450400003)(39410400002)(39850400002)(39840400002)(39860400002)(199003)(377454003)(377424004)(189002)(13464003)(93886004)(97736004)(189998001)(74316002)(6666003)(38730400001)(110136003)(99286003)(6916009)(77096006)(7696004)(66066001)(25786008)(6506006)(2950100002)(55016002)(3280700002)(6436002)(229853002)(5660300001)(2906002)(4326007)(54356999)(3660700001)(101416001)(106356001)(2900100001)(53936002)(92566002)(105586002)(106116001)(81166006)(9686003)(8936002)(33656002)(305945005)(50986999)(86362001)(3846002)(68736007)(81156014)(8676002)(7736002)(76176999)(6116002)(102836003)(122556002);
 DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR0401MB2053;
 H:DB5PR0401MB2054.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;
 A:1; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: nxp.com does not designate
 permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: nxp.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2017 05:15:36.5739 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR0401MB2053
Subject: Re: [dpdk-dev] [PATCH v8 4/9] eal/bus: support for scanning of bus
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Jan 2017 05:15:37 -0000

> -----Original Message-----
> From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com]
> Sent: Wednesday, January 18, 2017 5:07 AM
> To: Shreyansh Jain <shreyansh.jain@nxp.com>
> Cc: dev@dpdk.org
> Subject: Re: [PATCH v8 4/9] eal/bus: support for scanning of bus
>=20
> 2017-01-17 19:07, Shreyansh Jain:
> > + * Generic bus object passed only as a helper for implementation to fi=
nd
> > + * their respective registered bus object. Implementations can choose =
not
> > + * to use this variable.
>=20
> I think this comment is obsolete.
=20
I will remove it.

>=20
> > + *
> > + * @return
> > + *     0 for successful scan
> > + *     !0 (<0) for unsuccessful scan with error value
>=20
> What do you mean with !0 (<0) ?
> I guess <0 is enough.
>=20
=20
Only to highlight that only '-ve' values would be returned. I will change i=
t to !0 only.

> > + */
> > +typedef int (*rte_bus_scan_t)(void);
> >
>=20