[dpdk-dev] [PATCH v2 04/14] common/mlx5: get PCI device address from any bus

Slava Ovsiienko viacheslavo at nvidia.com
Wed Jul 14 07:59:05 CEST 2021


> -----Original Message-----
> From: Xueming(Steven) Li <xuemingl at nvidia.com>
> Sent: Tuesday, July 13, 2021 16:14
> To: Slava Ovsiienko <viacheslavo at nvidia.com>
> Cc: NBU-Contact-Thomas Monjalon <thomas at monjalon.net>;
> dev at dpdk.org; Xueming(Steven) Li <xuemingl at nvidia.com>; Matan Azrad
> <matan at nvidia.com>; Shahaf Shuler <shahafs at nvidia.com>; Ray Kinsella
> <mdr at ashroe.eu>
> Subject: [PATCH v2 04/14] common/mlx5: get PCI device address from any
> bus
> 
> From: Thomas Monjalon <thomas at monjalon.net>
> 
> 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 <thomas at monjalon.net>
Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>



More information about the dev mailing list