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 04F01A0C52; Wed, 24 Nov 2021 12:31:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B758241142; Wed, 24 Nov 2021 12:31:32 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2057.outbound.protection.outlook.com [40.107.243.57]) by mails.dpdk.org (Postfix) with ESMTP id D06344003C for ; Wed, 24 Nov 2021 12:31:31 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mO1AmFSpLquuU6O1ztMqNi7U6vloBIGgaGwVWFpqmlTRZE9s+bMD0ZE38eUHCekSBYrKawr7OYQjrhlYlh0Q4fowt/kRNjQhxmS0QrUDWrY8tDzTEHKawGbJaV8ZkL5yv/V1sCJw+7hg9hX9YOUV5sfoSEqYsVAkgFeeKhDjhDgkYhBlHJCEFUyibOl2/rHL89I2pKMGbb5fDZSZruB+wFMhBnNvpYSud8DbohO/KWlzy4jaQae7TYczhwcxx5KyxMTCBUxdUKRtyCBQpDbye4pP+WXL+yAtHgmLR/WJDdfhuIIa573foGPzw0wyIgLzUb5qz9fYIdRzHBdGEEk1Eg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AMfLgIbM09RlHuaFiynXnxOjb6GwJB6d1mXNW7QXoYg=; b=XKucoyyEv47P8H1sh6muULUo52dz04OTHMF5d7/xegXndi6DomD+7PDiADK+Ff43vz4d8gFISQq7bjEPk+AolMWRMapS469Uf5w0o5yOVpcOrZzMVaG9ZXA/874ffZ2ALuTEc2ONUYNWQNd+MjG5WJc1rQ5q7cYwpqN7KtQwX0ee6mjfRklCllIW483vIvaTfUZmbOzICW+AnxI2egJBYI24PMNU4esKNi7LVJVB5lwRLwJHcCpljE4yNKJ7c7zrXLBPou5ra5XZt/HQfMmVwJgGDd96zLU7stuxkve7bYBm94F1aHaiUW4w0iPFRosn4CSGXMcQ4rH6YcO2laBYDQ== 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=AMfLgIbM09RlHuaFiynXnxOjb6GwJB6d1mXNW7QXoYg=; b=ghg/t4+dCbUFB9v9VRUT+mm5iwzUPidXXihjS+Xnb1QFmAJIFNejqRYqgmTrJCIZZPiWwNOklaYTVeYPEWFLOzkn0Ktn902J4wW9HAhS8k2yYFwwCQxucnOC6z7UCyB+xTSbBItoyfh5sz/0Rbd0UAiI2KY5Gs8gVROgVcMCaGeWG8hz8c8Wcj68vklWl35yIOpf5wDLeopboEqWWND67oIHQkGtvu9D9FrvEdYqTBt5mH1TXundBlmG0+GHcOIJO5xB4lCOL1TVH2RZxa+VAKybhM23kXZ7x7qsoEenNdk6SdwD+D6XbK4eA9/TFFE9ktpf1svm6PvHvD6+PoG4lA== Received: from DM4PR12MB5373.namprd12.prod.outlook.com (2603:10b6:5:39a::17) by DM4PR12MB5135.namprd12.prod.outlook.com (2603:10b6:5:392::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.22; Wed, 24 Nov 2021 11:31:30 +0000 Received: from DM4PR12MB5373.namprd12.prod.outlook.com ([fe80::10d0:8c16:3110:f8ac]) by DM4PR12MB5373.namprd12.prod.outlook.com ([fe80::10d0:8c16:3110:f8ac%7]) with mapi id 15.20.4734.022; Wed, 24 Nov 2021 11:31:30 +0000 From: "Xueming(Steven) Li" To: "olivier.matz@6wind.com" , "dev@dpdk.org" CC: Lior Margalit , Parav Pandit , "david.marchand@redhat.com" , "mdr@ashroe.eu" Subject: Re: [PATCH v3] bus: fix device iterator match from arguments Thread-Topic: [PATCH v3] bus: fix device iterator match from arguments Thread-Index: AQHX4SLW62vNbCJXrkm9WHx21jiBa6wSiwKA Date: Wed, 24 Nov 2021 11:31:30 +0000 Message-ID: <7f51c5b49ea14c8f50fb73bfb30a2b377b8f7488.camel@nvidia.com> References: <20211122061250.3220823-1-xuemingl@nvidia.com> <20211124110244.26464-1-olivier.matz@6wind.com> In-Reply-To: <20211124110244.26464-1-olivier.matz@6wind.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.42.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 74e5d521-a45c-44a6-14db-08d9af3df62b x-ms-traffictypediagnostic: DM4PR12MB5135: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: dcvZbx1QEg3a7vDOWFpk3wF8Z2dHtary5sT3reLiGJDZor8AVOoAXWPN05Ki264EsK8kb7vHzK4tFREvo7UUY8FyxH1pluMCtkDAWc6uBmy6dK+w9cQ7wwQKuLFA5k5VFohbGrQil0UDMQODpMnJLcWdDk/cTZitoke0FJf/wOVz0FurkpYyumLZ6rhFDA7wdujkdJ9qPVzp/EV6m4e3X9jxnt/habSsIPdzPY2VQH9rX792oDc3nDvF1sFOZUicCwxMNC6uk6m9UJHxjX/KRB9WoKw+0+Xp2bJIP8JNT+uEGmtfFCwybcskpoGExO2hhXU199z/lLiPmN4tkh1K+N++4RaL/2ZlsSswqO4pLk5inuAsHYn6tuUgAhwjNx7zEt6lUA7rLSNH3fwLukkbf0U9f22aAZSiXvRwPmo46daARTKHzl5jsGFwEXqTIvZ35qgX9kljWAfikTzRq1VVjEwTbNiBbCl0QF3aQkil7QJ8LQBe6ke5wr2YR/mgAc8DPYOyoscRlnj9z0dkddNW4YC589tU+OjAjpUvxn18XMsVo03o+9Thzr17lajfXVg922UoGuyN/TDC5smaU0PDM2xhlcEM6NTkM8Vg3qQ5qVWXLlIuWbrdMIzTkT1N1KnJVg3fjbiLtocy/Z6m1jzTnSwkn1wM/tllazAXECfTUksgQpQWyPvqts5BM0So/CJt7p9q1pcbpbEFJs5Q4Gus3w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5373.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(110136005)(6486002)(36756003)(91956017)(71200400001)(508600001)(316002)(54906003)(26005)(8676002)(66556008)(4001150100001)(64756008)(76116006)(6512007)(66946007)(66446008)(66476007)(2906002)(186003)(83380400001)(5660300002)(86362001)(38100700002)(6506007)(2616005)(8936002)(4326008)(122000001)(38070700005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?N0dkdGhLVmdMdWQ1bUcxVU9OQ0dDS0RMQ0xEVVBkL0o3Qi83TmRXZFYvbVlX?= =?utf-8?B?ZFl2UGRQV3FMMEhIaDJjSkphZDFLa0d5OUZBUU5Nd3FzSS95c282MGE3RTlh?= =?utf-8?B?RTZOM213L2ZOaTZES1dOS2NjeVlEMkNvMStHYzJOdnBFRnNFVUVFdUJOcG9B?= =?utf-8?B?eC9LdUF0cHgzV1gxbVFqRDhYSXlsbVFTNmd3V2FPN1lDeUtwYVhyY0dZbkJ6?= =?utf-8?B?YUMyOEJwZUtrS3lnamNKYU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ovRkxGSVpBVFZIOGpwby82dU5KUFkrRnNzcDJPZzAxQlZ0bWpwdjRiVmpq?= =?utf-8?B?b2gwZnkvTFJSbXlzSFN2Z1lDZk1BWUFialRldTVUM3UzK0tKZnQ2Ti92VUJ2?= =?utf-8?Q?D8A/OEWBvVRGnPMlXSgspf+7Y4Jp0tGTKNNoBBaXJgzc?= Content-Type: text/plain; charset="utf-8" Content-ID: <375525E8C0BB714492AD43C0FCD133C5@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5373.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 74e5d521-a45c-44a6-14db-08d9af3df62b X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Nov 2021 11:31:30.6574 (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: FmI7AWkamT4xUP04AVpxc0GjUzZjnrv8awl8H7Wnm8488FMy7TN1ToHoecuwV+LBcauEfPsQ4XRRiGarCci5NQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5135 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 T24gV2VkLCAyMDIxLTExLTI0IGF0IDEyOjAyICswMTAwLCBPbGl2aWVyIE1hdHogd3JvdGU6DQo+ IEZyb206IFh1ZW1pbmcgTGkgPHh1ZW1pbmdsQG52aWRpYS5jb20+DQo+IA0KPiBEZXZpY2UgaXRl cmF0b3IgUlRFX0RFVl9GT1JFQUNIKCkgZmFpbGVkIHRvIHJldHVybiB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