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 E9CBAA0C49; Wed, 14 Jul 2021 07:59:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DA9324014E; Wed, 14 Jul 2021 07:59:07 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2056.outbound.protection.outlook.com [40.107.96.56]) by mails.dpdk.org (Postfix) with ESMTP id F3D0240140 for ; Wed, 14 Jul 2021 07:59:06 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DKigyeeWn0zEy5JtXDuuEt5bnH6lrCn61IZcjQb16Yepfoy/UpKAoY8nw2nZHuRniWaBUk1Y+NNNGriOp1UebGqFe2iAJ67oe6ApirwEZ+rVLZd3+7b0yXZszmuyiAxI1bHO3wk77DQ99O6QXBQnctf1xJ3LAGrr+vknNUrHCXnP1/m9xMzF35EqkNLba1NMUYaC+hqf+PE0611dZJM/bEspFv4jJJP13o2c8n0cd1hvfBUvD+DJmysKzFcALs/VNBEnLQRSFvlGbwJ9FNt8UjK5Mfc6UIU/6rurtF8XltLpF2lwIChKebVerurX8R5SzbEB/x49Yifdf7n/vvvMww== 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=8W6PfnjA7B+RbVNLCJCnSgbFW+fd2EnK5cZ92Rgm/N0=; b=ZdfCPedmVbFwbsNqj1OUlGFw0Sd4NCYFG9ypLcfk0Wl6ek7IWyhwrIyThfjpHc8B8RRQxYnvKPgE207N2LJiuztlKB5MVn8D97AeK5Ad3tH01OQcwIvI5qc0BrHqiskc5UPfMEjAGckQhp6n/CK4Q2ZPOktkCrIsmlKKPQ3BRQOqxfcynVM7Jw4LuNgeBSj2E8NOwA3+dmeqjJ9K7JvuLqypGoXqGxenEYBCYsb2xMbv8YZxbcKQh60Iw1vOo6ZqTsmlAF7hrCo9CqzhCkXCTZ+lR4QcvX9XgtepcttyNzt+oxd47eoBzXUNb4zj6omuZrgzwgXhbT3gVi9kajtS/w== 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=8W6PfnjA7B+RbVNLCJCnSgbFW+fd2EnK5cZ92Rgm/N0=; b=jyfZIva1qPVt4uilIz8DJHTzIl5jdCoYZm6lJq+fWUPYd2SzqdAry/qMIgt5gvUMVcCb7FK5GHhQ/zMSy5TZxLr4jL9RlWl6EbBcYupmH9he9+zAWyTbx1YcEsOzceqWmDOsFn5C8pP4vjCNCYdY0z/tovj3wWRXzvz67Y3WpFKefdlxQtYxJMwgmqLdz6d34+qSV6zGp2tyBseZu4NZfUGj3MwayXFCOsLeYC7/A9l9WL9HceGrRMr88W7mHbYdk0iqUhhWA10VO/bZhynhjgXePI+ByQU4szGx57PCwMKb6W6N8eyKkt67zd5ZkdVFZ99BJHNssd2gJPUVCX91OA== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by DM6PR12MB2650.namprd12.prod.outlook.com (2603:10b6:5:4a::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.21; Wed, 14 Jul 2021 05:59:05 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::2521:f25e:e8db:6e35]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::2521:f25e:e8db:6e35%6]) with mapi id 15.20.4331.022; Wed, 14 Jul 2021 05:59:05 +0000 From: Slava Ovsiienko To: "Xueming(Steven) Li" CC: NBU-Contact-Thomas Monjalon , "dev@dpdk.org" , Matan Azrad , Shahaf Shuler , Ray Kinsella Thread-Topic: [PATCH v2 04/14] common/mlx5: get PCI device address from any bus Thread-Index: AQHXd+lJw1SU9HkKoE6cn9vx2uHfAqtB+tPA Date: Wed, 14 Jul 2021 05:59:05 +0000 Message-ID: References: <20210616040935.311733-2-xuemingl@nvidia.com> <20210713131437.30170-5-xuemingl@nvidia.com> In-Reply-To: <20210713131437.30170-5-xuemingl@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3400f698-1056-4322-d899-08d9468c7d05 x-ms-traffictypediagnostic: DM6PR12MB2650: 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:7219; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2sMGWQ3uFyZica+AUeHLPQXMuup1d63IzaLceVhVf0thSv8FUXOH/7zgkZGC7IZi+KP4D2Tpv5ExfK7hzqgPVmBarF6b6CqUzb5+w8hE0HWIRZl10l7ggkSFb+T+0j95pRXUdo+dVlLD3r1U85+44R46jL22x1aYoNhMFPs8bkBzyA90y6aiv3RCf9NB/rD92D8kNO6MQ8iAoZSYXumLExZlXnTOnyoH+YBtf2rFe7l4MLA6Gg1bmcKkj5oSiOHFSuVSWd9fd3WfBUYw3tccwS6dj06O3JYMaWGETM3e+Gwdb0+SeuOElMC3gsBGAd/0BX4SX2Q6Lo9ic+fowPjUtS4GKHqp1OoVSyTA8pmlxYVoLsYA8w+DYfsugxtk0KywlrfIxHAnz1gWKPIHx3U8LfEmjOTnPZ6J8+57uuOO7dB4f0vxeSR+maLO3VFnudmrgYfQrcyFdntaTWzhtjCp/Ob0D/cjQG+oB1E6e0HNtT6pYVeuGXN2+Gb0EsTXbYp/M40/YYCiUUbz+kOY9K609mvfVcRXFdJndhg5hsNJkHrtwCIWMOq5biuXjqM5dugRJtI8rpj0D++qFCuxosuCgvAdDoumbHedyA3050Dj2cVBLEBDgT/G8eAGfJXlc4sv0YAPcHY8FjkP/d1fghH3MzvIBlRfgIt5JrhM8iWWOx1GhJPCu2ceBtQSmccpV9E3DYAd28jUDUzOOWuJEa6Sfg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(39860400002)(376002)(346002)(136003)(366004)(6862004)(64756008)(7696005)(6506007)(53546011)(83380400001)(316002)(71200400001)(2906002)(66556008)(55016002)(66476007)(55236004)(9686003)(122000001)(66946007)(5660300002)(8936002)(186003)(33656002)(76116006)(4744005)(66446008)(38100700002)(4326008)(8676002)(26005)(6636002)(52536014)(478600001)(54906003)(86362001)(38070700004); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?NCmrsx7NpVGpwJ8M95LjIcP3Tyy+RwOZR9ae8rFahJnVQZ256rr4rjj5vuc1?= =?us-ascii?Q?K4xiznemEcbfLRBajyBJmCfkvGXvgegV7cTZbox2jtWICFN3/f4BL9eGGjum?= =?us-ascii?Q?jLmWSVrmPk4Ybkq1LR0n13VbCOrWbVxTZBTuZWgtzq88JFDgHmpf7F26wg+S?= =?us-ascii?Q?i5UZM+w3SgK10NWvuA2ZjeYCDMj6B5116FY2k8aARXQq4X0HkobCakFhpkM8?= =?us-ascii?Q?AS9PXCHv144tq5PFtzPFoyOP+3ZC9rUctKPbV5H6fQZTPII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FBLrbOrTk7ExEJnMXtpu3L0V8lMYcgifIdDkGoY+iK/p6wWgjqfdchU?= =?us-ascii?Q?wLLdXyZR2v8wlbEAEd+LsjFPr/gsSw3ruSmg76B56ZM2cVg2AtXIMlmIGFB7?= =?us-ascii?Q?2IY6M39vfYA/uQpZCEOjovcFeWT66S+XEhVyZFYoEzrgRWB354aTh2kEghMt?= =?us-ascii?Q?L/FGvd8FHUy5proKoO6tCdBo?= 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: DM6PR12MB3753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3400f698-1056-4322-d899-08d9468c7d05 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jul 2021 05:59:05.4467 (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: UlhWprtXzZFzrKFnRA8UBzXnRN/+C+lExSyjA1/EOmTjCuSZbcJqBRtutO8TsKtc63V7z5gODSQigaVLLTI5ow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2650 Subject: Re: [dpdk-dev] [PATCH v2 04/14] common/mlx5: get PCI device address from any 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" > -----Original Message----- > From: Xueming(Steven) Li > Sent: Tuesday, July 13, 2021 16:14 > To: Slava Ovsiienko > Cc: NBU-Contact-Thomas Monjalon ; > dev@dpdk.org; Xueming(Steven) Li ; Matan Azrad > ; Shahaf Shuler ; Ray Kinsella > > Subject: [PATCH v2 04/14] common/mlx5: get PCI device address from any > bus >=20 > From: Thomas Monjalon >=20 > A function is exported to allow retrieving the PCI address of the parent = PCI > device of a Sub-Function in auxiliary bus sysfs. > The function mlx5_dev_to_pci_str() is accepting both PCI and auxiliary > devices. In case of a PCI device, it is simply using the device name. >=20 > The function mlx5_dev_to_pci_addr(), which is based on sysfs path and do > not use any device object, is renamed to mlx5_get_pci_addr() for clarity > purpose. >=20 > Signed-off-by: Thomas Monjalon Acked-by: Viacheslav Ovsiienko