+1
−1
Loading
If devices are not picked up from the cache, iter_all_pci_class_code() will pick lspci in first instance to iterate over the pci bus. If said tool is installed on FreeBSD, it will return BDFs in format which won't be understood by pciconf (which is used to determine which driver given device is bound to): pciconf: cannot parse selector pci0000:00:06.0 To make sure pciconf understands the argument it's given, simply replace .function with :function (0000:00:06.0 -> 0000:00:06:0). Change-Id: I59d4f7050c65df99626a3d449aa0a5bb122d4081 Signed-off-by:Michal Berger <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4665 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>