vmd: set socket_id for devices behind VMD endpoint
Fixes issue #2248. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Ic561a0297fe28affd056b160abfdf4a65a4695c9 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10373 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tom Nabarro <tom.nabarro@intel.com> Reviewed-by: Niu Yawei <yawei.niu@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
85395e2895
commit
086223c029
@ -900,6 +900,7 @@ vmd_dev_init(struct vmd_pci_device *dev)
|
||||
dev->pci.addr.bus = dev->bus->bus_number;
|
||||
dev->pci.addr.dev = dev->devfn;
|
||||
dev->pci.addr.func = 0;
|
||||
dev->pci.socket_id = spdk_pci_device_get_socket_id(dev->bus->vmd->pci);
|
||||
dev->pci.id.vendor_id = dev->header->common.vendor_id;
|
||||
dev->pci.id.device_id = dev->header->common.device_id;
|
||||
dev->pci.type = "vmd";
|
||||
|
Loading…
Reference in New Issue
Block a user