From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5E5FCA0562; Wed, 14 Apr 2021 17:39:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E4317161B7C; Wed, 14 Apr 2021 17:39:08 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2067.outbound.protection.outlook.com [40.107.220.67]) by mails.dpdk.org (Postfix) with ESMTP id 509F34013F for ; Wed, 14 Apr 2021 17:39:07 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HbIsE7uRdBWety/k5IV8fSkVyRAaz3Wg5g/VCQW/zE0DWJpowc6Ek46NIg1nZE5pPERzW+plw8oBNsc+FZtQTFnMDUG195ICYEvvu2QnSUdTU6A7XjTx42SG08LUtNwOsBke+QzeTeGTbY1UtbbCrDd2tG6kIfoZ0HX6WkICeblslr3XDt4YGIQo0HLwu8VcJWBckGwrrb/mZ9TX9aJm8zqkZ+YqNUwZJsJKO7EwnwWRKLDdIETyV5aYvDBYnMqg7KCvc2lWPajqZvq2QCZtqREkVxMn+0GQZjjkLlrE0ZkZ7bruXa6y+zRx6IhDcxrtaapXkLCvEXpUxl0NrNOBqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i8KbCfwuK5rmngHus6c5ku+03NNnCa2luciTzb3W+qA=; b=AZA8aTZoeYJ+v+J6a7VrVjgUnqT4OiUFNRFaE9dlOMC9dnhOGmGNhOa5TkxHECx/4w9gcp67e4VfMDetChnAg+ETtaWIuYsEX10jqIeTGcXepMZWhYISczfIx597/hjzPiZg6XqMMXCTWiTFrpesB0nzrSFyx3mdsLLEdj9BYKVgAMcZH+ASFHoZ+t+MKbKQ/MBhaAlVf8Pd24qltC7hxXfGXh+fNN8D1Oydm8d8t12zbxFObFgDR4O2OWq0ihZslotzDV6ioIUJhsjZ1CmTiBFfvit5hZvV1J5SNQF9pJFprLu8jsByFlIHSPxvvcadDPLvBHRQrzhTLxjxEk1jBg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i8KbCfwuK5rmngHus6c5ku+03NNnCa2luciTzb3W+qA=; b=PXt2pz5mpJfEntZJedywqrVrMpe/AcEVj8XSxrlpyKQWA3DcaxhD1Ip9hDq/3bKvhwh1LKsJehQUaA/bqHbqhBbbSBHlj4j+RXJo//AEdpx5/klVlow5pk+HnYkxY+ApQEDIoNTYpVpVqzdCJv828WeSG56UqR74xPm+1B0Rue7WNjf8aDkvBuX2epMyhZ5h2ixGe0OZA7CYsl0GITnjw8ahiMqNsDz69CSjEKT8BjP9hPHYs/prCOLv5NC9EVeNbP1uOyXtniv4HKT5WGPLXcISbAIio/3JHTSOY6qpS3CWAPg25E973Eyjx+Lv9V4oP0Smvf1BUME1GZP/2SEXYw== Received: from BY5PR12MB4324.namprd12.prod.outlook.com (2603:10b6:a03:209::10) by BY5PR12MB4322.namprd12.prod.outlook.com (2603:10b6:a03:20a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.19; Wed, 14 Apr 2021 15:39:06 +0000 Received: from BY5PR12MB4324.namprd12.prod.outlook.com ([fe80::b919:53f4:6757:331c]) by BY5PR12MB4324.namprd12.prod.outlook.com ([fe80::b919:53f4:6757:331c%5]) with mapi id 15.20.4020.023; Wed, 14 Apr 2021 15:39:06 +0000 From: "Xueming(Steven) Li" To: "Wang, Haiyue" , NBU-Contact-Thomas Monjalon CC: "dev@dpdk.org" , Asaf Penso , Parav Pandit , Ray Kinsella , Neil Horman Thread-Topic: [dpdk-dev] [PATCH v1] bus/auxiliary: introduce auxiliary bus Thread-Index: AQHXMBR7KefWjHt1PkOf7D5G3ZHCMaqzVCeAgADTTmA= Date: Wed, 14 Apr 2021 15:39:05 +0000 Message-ID: References: <20210311130113.31382-1-xuemingl@nvidia.com> <20210413032329.25551-1-xuemingl@nvidia.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [180.162.52.50] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b6e9c353-4cf5-45dc-6433-08d8ff5b700e x-ms-traffictypediagnostic: BY5PR12MB4322: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3276; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HwtUUIpfVwCFY3+WhOyVxJzkENn8dgY7BTnNo/qunlx/xf/AqEErlTZbkyxNb8ajwsDB5gZjjKvgY/nyZGJXg+zQaOkna5bd83nXF/GKLkgQ4vsLy1MJXlrrSOGkGNXMK7dhUNU1z89yozoZbMHOuEbzEO9UX8XSzROS9wtJMb70/DGX6scz8E9KBAOIzMXdMRxmq8WDSkCw2cbROxrGw5h9bO80jaWjNBi4hVsRE+N4UJ86vQVhRAZMVYJX3u+jPscKXoBsolCvCiFc/o5uxB691CPd35l4/ux0t94tfaD6aj+2B4CwDKxQFLk1OvSTQkT6oJ0Q38CpfACdQfHhjr50R1/CONH9X+GRJGPFV7iDDjK4kke0W2TotovkDcsIWsiw4MC2dZRTaC3MYfCJaRHO1gfW0/2wnygP5Akveteb7MCjJPHeeU0L3/OdPFlsMMKZhUf8Sil7Uw3VEJQtBAvBzTg/6e4gB+jA5DEQx7fXoMqUhUn/5gvhGdjr50pZW68WY4sWjBfNELgjpBQxO/2KW1Vs3jtXTFthfde2imZ89Vri6yEiezlVb6y5Cd0tCqgtGx5rCnsWBmm+LGEP6aCU8yAAp11uDmUOyUdhGzM= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR12MB4324.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(376002)(346002)(366004)(136003)(39860400002)(9686003)(33656002)(110136005)(54906003)(2906002)(71200400001)(26005)(38100700002)(4744005)(4326008)(316002)(55016002)(7696005)(86362001)(6506007)(122000001)(5660300002)(8936002)(66946007)(76116006)(478600001)(52536014)(8676002)(66556008)(186003)(64756008)(66476007)(66446008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?mCG8pWj0SKYa6tYf5+NqCWOw8o30g0thScrvDABMBVpp5JslLR2Zk1KO2WhU?= =?us-ascii?Q?ZB3JFgX0D5LHOxQ9rmtwLe4EdOaayrqcIsFt/4AN4L51Pv+lotoRHyb06s6x?= =?us-ascii?Q?Fu1Tp9gvvqvX2QqTBWk8Qwhlw1WhEz38chCggMhjvw1ZdYzIkt3zi8oI1tEI?= =?us-ascii?Q?tvSVgdohQCmSRBwBcFMDY1q8pusNZReYYyULO5hGVBUp0jtH5h2Oct9NfJaj?= =?us-ascii?Q?11NS5M36aPJ377SZIX56KaIbi+o6fmZTw66R0rmRgc3tyzpKeDxwkL2qWAVT?= =?us-ascii?Q?ZriiEsQA9iPmYUxAaP58hnNICloK4AYWaMyoPfMlR0OCDwEG93xmyyYVOalf?= =?us-ascii?Q?QW7INVQdIz2KQUnvDhqwDbxmk9ufSlFiIakRa5pgfLR+Mw4h1S8gzrAgRTiP?= =?us-ascii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ezAJCX758skPBlnFUrOU?= =?us-ascii?Q?ldxNADdIA68mRKimGxYcXJpE?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4324.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b6e9c353-4cf5-45dc-6433-08d8ff5b700e X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Apr 2021 15:39:05.7424 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: UArxrsrvAANZLbyMLDF4EVTkQOfXIjtOpOQibcFNOuEf08+W1MB7mcp8YOOX02Ew5l4Vo3Szt12jBrLoh8kO+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4322 Subject: Re: [dpdk-dev] [PATCH v1] bus/auxiliary: introduce auxiliary bus X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Haiyue, > > + > > +/* > > + * Test whether the auxiliary device exist */ bool > > +auxiliary_exists(const char *name) >=20 > is_auxiliary_support() ? This function test whether an auxiliary device exists, name parameter is de= vice name. I think auxiliary_dev_exists(name) make more sense. Agree with other comments, thanks!