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 BDF51A0C4C; Tue, 23 Nov 2021 12:25:27 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 568F040040; Tue, 23 Nov 2021 12:25:27 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2069.outbound.protection.outlook.com [40.107.96.69]) by mails.dpdk.org (Postfix) with ESMTP id 14FAF4003C for ; Tue, 23 Nov 2021 12:25:26 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AlLv7XBJ9PJFpJ6rYy/70/OUf5TvP9tv9K55Ul1sn1YupoVdlItn9ubNzx9YffJZetl1HHuHLAvSWCBCHz9JryLaotj+GlYk0NxJf+wJR/WBIQQmpUfXc2G36CeqPIqCk4edAHCmLgdQ9gXgFoYWB+KXwMhGI6C1S+ZPBe1E+K9+UjVceVUulBsqrCPAwuE7ZLNQ1hLjN8qgQKiRTpmtyNikscXCKshZ5MGM4gBNNeW9R23wVS0DKKwEQgYa4OhcfVZ+ULkgqa5sec1rO0VzjAIQASO2rdY7sfsHIQwzSfMCUYP6tEycayIu1pEG+fAwj4ApqM+XiMiiSjbx+FBifQ== 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=QhRMhjNsNY4LVs38mYn050TE8FxGoL6GoXI1lhEXczQ=; b=TCMI6QgP/sBYoeStb4JZVm72PUhP64wS+RyCqSzl22odv/oPIhJ+iD2GifKb1Pg+K1k2SYPPqE8ro79igrineI1bvideTX/97892Mj9ml038JBEalUz+c6wHNFDAIwzogEAsTX1xNWuw59UX3EcLeOQNcaxeEGhiSIUp+MTO7a7KWM6QFHUBL2oCMT+17UeCWVrUz5CizKdM0zdC4NT4dEFGVMMyBm8PqiAAgKrHu6FeZSH2WTCoWSyCS9Lb7ZfQQO3YXREWwrnrVFivCskVx3eAvOeM9pV8pURtraxIhzoKBH8BvmG0crCE/MUsxtL84MHZGYRBLhiFyP7dRb6MKw== 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=QhRMhjNsNY4LVs38mYn050TE8FxGoL6GoXI1lhEXczQ=; b=JishyimwNujr8H3T0tuqHqHJ0lGERWrsb/jr1GopkT/06QGMMt2n0eyjsjBgixWJO2wllBUQkhw6eErrhtN9iNUHldl0QK5A8bM6x/xJzsy8E/zivoDVWtCdjZCoSiCkwn1tGQAoGKhWlF0EknklQvpL724yA2KITkJv4h+FA+Kqnoze38xk9fqflYqcJhoi0AGtnRJp8KaeXiO9I26o3y46N8k+TpuJkhWRNOFa/E3FB0ggS92CNaakwz+8VNO6rFUh1whYutBymEvT3YqkEono+bZQavX72Vuta7+oE3Mj+ifj0ODU4mdAaF7Crtchs/fbZs7jlcitYMbs8e8iZQ== Received: from DM4PR12MB5373.namprd12.prod.outlook.com (2603:10b6:5:39a::17) by DM4PR12MB5150.namprd12.prod.outlook.com (2603:10b6:5:391::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.24; Tue, 23 Nov 2021 11:25:22 +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.4713.025; Tue, 23 Nov 2021 11:25:22 +0000 From: "Xueming(Steven) Li" To: "olivier.matz@6wind.com" CC: Lior Margalit , Parav Pandit , "dev@dpdk.org" , "mdr@ashroe.eu" , "david.marchand@redhat.com" Subject: Re: [PATCH] kvargs: fix device iterator match from arguments Thread-Topic: [PATCH] kvargs: fix device iterator match from arguments Thread-Index: AQHX32gZYz0QoCyYNEmqkBpbzoJFbawQ6jCAgAAQmYA= Date: Tue, 23 Nov 2021 11:25:22 +0000 Message-ID: <7e1225023de996e63ed041ee312e861982913caf.camel@nvidia.com> References: <20211122061250.3220823-1-xuemingl@nvidia.com> In-Reply-To: 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: 25b0cddb-ee8b-433d-1b71-08d9ae73f07d x-ms-traffictypediagnostic: DM4PR12MB5150: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Fokoj9OdAODPo+0KACY3DguHfa1k3aszjnne27RXBgjWl8twI4FegsqJyWygVfM5hsXIX6k497wUYEfw5hMbL2WcSWAaWJYOuj+NlzNr/4shLpMYhQkA5hbcFyCbgqQtjOb+AFuDOekJL6B9brLfwoSBe2myplHaNX4zyEKtwMLlqRz21yYnAHdDSItpqjTt4nPlb78UOWW1zPYRUKt9i+TfjBNn048insPNOZJJ1p47dXOQej6Vf3cbU+nOmL8+O4i7Q32QdKIGXyzAz9qwE2KjIwy7KEL1VuooiP89emZmJQUTM1o3Eb2Ev2Z0r9mcI73utWc6xhYU7Ck6nh5DrlAMv+Py+NUQYEb6Hor2dqrpktKxUcdbJuHl6aNTRzBdpdgYJBneSozSfQ8wXN5RUWybhr0aZJwos/7KpBRU6Me5KL1viVyYtkGkIeT4XdvO3C9mwgsPtpw4gQAljCfO8e6B96lmuO3AXI8ESZX1zI6NtTTtNAevLkvCWpqqH+SczVl2PHPTsBhm1oCDMHMIz4vZ1bzBWSD886Fx1gC1AtMccR9L//AVAwlHMnRhGBCk7/YV4fbrBS3pwTDIjpML8C4dIMIJVBDdwc0ugymoO7tCnG/EO71rDnZs4mfOqh/dHh2vDcamArX0f9dh220cFJCE1tT+hypSMwBxxe1gwQbrJPz4SFmqOQ8QBHSZBtetEK4bR64WbRhojCO1Q0vnJQ== 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)(66946007)(4001150100001)(508600001)(71200400001)(6916009)(6506007)(186003)(76116006)(91956017)(316002)(66556008)(66476007)(64756008)(36756003)(38070700005)(66446008)(8936002)(5660300002)(54906003)(8676002)(2906002)(86362001)(6512007)(2616005)(26005)(4326008)(122000001)(38100700002)(6486002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?am1wZUFhNlVyNktBVmxRcHFJU3pPWmdmcnBpMFFOOVBsNTVvQUVrMDlYajgr?= =?utf-8?B?TjFkaVN3Z2pHeGp6Mmg3UTliMmg0bC9nWHBPN1l6R2RWOVBOTFZKNUlXb1lx?= =?utf-8?B?enBOVHd1Ry9IdXBrUVZ3bWFJRVMwV25MbWFoV0hHWHBMV3JpdndYUkIrYVkz?= =?utf-8?B?bG5xRUtveE5mNHZaSFFjU0QzSEpwblBtWUlnMEtHUUZKdS9IUGNOU2NPOHZG?= =?utf-8?B?cGdJMnVYb0twZUhBTlFIYjFMTVQ4dktjYmtGZzk2TVFnTHlRRDZ5Q3UvZU12?= =?utf-8?B?T0NNVG5FSGh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1a1ZPTUll?= =?utf-8?B?QThDbWhkMUpmOWdKUS96cEpqN01TRjJaR3NKYzFyV2N5bGtkY0hxL0p4dllS?= =?utf-8?Q?00yYyNc7B93j4zRsR/Y8s8ePwF0hr7uzhNPLD4Yvmm9D?= Content-Type: text/plain; charset="utf-8" Content-ID: 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: 25b0cddb-ee8b-433d-1b71-08d9ae73f07d X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Nov 2021 11:25:22.7385 (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: tf5nSC0/VNX7pmEtSUvDod4GDDNQvWioKBjnyyuF6JRs+XsBVhASPNLVAm/Rbjit83iADg7qZEEx/gc+Fk659g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5150 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 T24gVHVlLCAyMDIxLTExLTIzIGF0IDExOjI1ICswMTAwLCBPbGl2aWVyIE1hdHogd3JvdGU6DQo+ IEhpIFh1ZW1pbmcsDQo+IA0KPiBPbiBNb24sIE5vdiAyMiwgMjAyMSBhdCAwMjoxMjo1MFBNICsw ODAwLCBYdWVtaW5nIExpIHdyb3RlOg0KPiA+IERldmljZSBpdGVyYXRvciBSVEVfREVWX0ZPUkVB Q0goKSBmYWlsZWQgdG8gcmV0dXJuIGRldmljZXMgZnJvbQ0KPiA+IGNsYXNzaWZpZXIg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