Re: [dpdk-dev] [PATCH v2 04/14] common/mlx5: get PCI device address from any bus
From: Slava Ovsiienko <hidden>
Date: 2021-07-14 05:59:08
From: Slava Ovsiienko <hidden>
Date: 2021-07-14 05:59:08
-----Original Message----- From: Xueming(Steven) Li <redacted> Sent: Tuesday, July 13, 2021 16:14 To: Slava Ovsiienko <redacted> Cc: NBU-Contact-Thomas Monjalon <redacted>; dev@dpdk.org; Xueming(Steven) Li [off-list ref]; Matan Azrad [off-list ref]; Shahaf Shuler [off-list ref]; Ray Kinsella [off-list ref] Subject: [PATCH v2 04/14] common/mlx5: get PCI device address from any bus From: Thomas Monjalon <redacted> 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. 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. Signed-off-by: Thomas Monjalon <redacted>
Acked-by: Viacheslav Ovsiienko <redacted>