[v3] vdpa/ifc: Match default subsystem IDs for modern virtio-blk devices
Checks
Commit Message
Ammending the match table for vdpa/ifcvf driver to work with virtio-blk
devices that have default subsystem IDs.
Cc: stable@dpdk.org
Signed-off-by: Abhishek Maheshwari <abhishek.maheshwari@intel.com>
---
v3:
* Removing match with ANY_IDs
* Adding support for only default subsystem IDs
v2:
* commit message update
---
drivers/vdpa/ifc/base/ifcvf.h | 1 +
drivers/vdpa/ifc/ifcvf_vdpa.c | 7 +++++++
2 files changed, 8 insertions(+)
@@ -20,6 +20,7 @@
#define IFCVF_SUBSYS_DEVICE_ID 0x001A
#define IFCVF_SUBSYS_NET_DEVICE_ID 0x0001
#define IFCVF_SUBSYS_BLK_DEVICE_ID 0x0002
+#define IFCVF_SUBSYS_DEFAULT_DEVICE_ID 0x0000
#define IFCVF_MAX_QUEUES 32
@@ -1849,6 +1849,13 @@ static const struct rte_pci_id pci_id_ifcvf_map[] = {
.subsystem_device_id = IFCVF_SUBSYS_BLK_DEVICE_ID,
},
+ { .class_id = RTE_CLASS_ANY_ID,
+ .vendor_id = IFCVF_VENDOR_ID,
+ .device_id = IFCVF_BLK_MODERN_DEVICE_ID,
+ .subsystem_vendor_id = IFCVF_SUBSYS_VENDOR_ID,
+ .subsystem_device_id = IFCVF_SUBSYS_DEFAULT_DEVICE_ID,
+ }, /* virtio-blk devices with default subsystem IDs */
+
{ .vendor_id = 0, /* sentinel */
},
};