PCI: hv: Use device serial number as PCI domain
authorHaiyang Zhang <haiyangz@microsoft.com>
Mon, 13 Feb 2017 18:10:11 +0000 (18:10 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 17 Feb 2017 19:53:29 +0000 (13:53 -0600)
commit4a9b0933bdfcd85da840284bf5a0eb17b654b9c2
treed2baa099d1ae0695f0f3f63d85f3b36175ce9b0d
parent60e2e2fbafdd1285ae1b4ad39ded41603e0c74d0
PCI: hv: Use device serial number as PCI domain

Use the device serial number as the PCI domain.  The serial numbers start
with 1 and are unique within a VM.  So names, such as VF NIC names, that
include domain number as part of the name, can be shorter than that based
on part of bus UUID previously.  The new names will also stay same for VMs
created with copied VHD and same number of devices.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
drivers/pci/host/pci-hyperv.c