app/spdk_lspci: Mark VMD and device behind VMD

Added information that enumerated device
is NVMe disk behind VMD or VMD itself.

Change-Id: I0265995ac11859f8f503bb6f6021667db4d0f2a8
Signed-off-by: Wojciech Malikowski <wojciech.malikowski@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/459638
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Wojciech Malikowski 2019-06-27 10:43:21 -04:00 committed by Darek Stojaczyk
parent fe73e3072c
commit 8ec04f81c9

View File

@ -56,9 +56,19 @@ print_pci_dev(struct spdk_pci_device *dev)
spdk_pci_addr_fmt(addr, sizeof(addr), &pci_addr);
printf("%s (%x %x)\n", addr,
printf("%s (%x %x)", addr,
spdk_pci_device_get_vendor_id(dev),
spdk_pci_device_get_device_id(dev));
if (dev->parent && dev->parent->internal.driver == spdk_pci_vmd_get_driver()) {
printf(" (NVMe disk behind VMD) ");
}
if (dev->internal.driver == spdk_pci_vmd_get_driver()) {
printf(" (VMD) ");
}
printf("\n");
}
int