common/mlx5: fix PCI address lookup
authorViacheslav Ovsiienko <viacheslavo@nvidia.com>
Sun, 13 Sep 2020 19:55:06 +0000 (19:55 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 9 Oct 2020 11:17:43 +0000 (13:17 +0200)
commit482a1d34b60e7b918a39b2ccd32e06638f8c5aa4
tree25fadb65c5e711cb11f06e3834d830bd9241fed2
parent657df3ca0aa632b028aedeb45a2a5bf66c973125
common/mlx5: fix PCI address lookup

mlx5 PMDs use the mlx5_dev_to_pci_addr() routine to convert
Infiniband device name to the Bus-Device-Function location
on the PCI bus. The routine returned success even in case of
not found identification string. On caller side it likely
caused the wrong match with the BDF of previous device
resulting in wrong representor and master recognitions.

Fixes: 771fa900b73a ("mlx5: introduce new driver for Mellanox ConnectX-4 adapters")
Cc: stable@dpdk.org
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/common/mlx5/linux/mlx5_common_os.c