lib/vmd: Removed SUPPORT_ALL_SSDS define
SUPPORT_ALL_SSDS define is not needed. Change-Id: I9f81dfa0da10c4c83bbc6e051cd83ac6318651b3 Signed-off-by: Wojciech Malikowski <wojciech.malikowski@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456478 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
2f4e74fe95
commit
122a64a359
@ -58,7 +58,7 @@ struct vmd_container {
|
||||
/* can target specific vmd or all vmd when null */
|
||||
struct spdk_pci_addr *vmd_target_addr;
|
||||
vmd_adapter vmd[MAX_VMD_SUPPORTED];
|
||||
} vmd_container;
|
||||
};
|
||||
|
||||
static struct vmd_container g_vmd_container;
|
||||
static int g_end_device_count;
|
||||
@ -572,17 +572,7 @@ vmd_bus_update_bridge_info(vmd_pci_device *bridge)
|
||||
static bool
|
||||
vmd_is_supported_device(vmd_pci_device *dev)
|
||||
{
|
||||
bool isSupported = false;
|
||||
|
||||
if (dev && dev->header
|
||||
&& (dev->class == PCI_CLASS_STORAGE_EXPRESS)
|
||||
#ifndef SUPPORT_ALL_SSDS
|
||||
&& (dev->header->common.vendor_id == 0x8086)
|
||||
#endif
|
||||
) {
|
||||
isSupported = true;
|
||||
}
|
||||
return isSupported;
|
||||
return dev->class == PCI_CLASS_STORAGE_EXPRESS;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -35,8 +35,6 @@
|
||||
#ifndef VMD_SPEC_H
|
||||
#define VMD_SPEC_H
|
||||
|
||||
#define SUPPPORT_ALL_SSDS
|
||||
|
||||
#define MAX_VMD_SUPPORTED 48 /* max number of vmd controllers in a system - */
|
||||
/* up to 6 per cpu */
|
||||
#define MAX_VMD_TARGET 24
|
||||
|
Loading…
Reference in New Issue
Block a user