sriov: PCI IDs must be checked before usage 83/18083/1
authorMartin Klozik <martinx.klozik@intel.com>
Fri, 5 Aug 2016 11:38:56 +0000 (12:38 +0100)
committerMartin Klozik <martinx.klozik@intel.com>
Fri, 5 Aug 2016 11:43:21 +0000 (12:43 +0100)
commitbf3c82b37f22e592ca5b8969ef9526cd7725e93b
tree5e96b6980ac3c8aa281c3f67b264c7de6398f0bd
parent40460b1fd291612cca316527c4366e83ae295ce2
sriov: PCI IDs must be checked before usage

Order of NIC PCI IDs handling was changed to ensure their
check and possible expansion (by missing domain part)
before their first usage. This avoids a vsperf crash
in case that sriov is configured and short NIC PCI IDs
are used.

JIRA: VSPERF-363

Change-Id: I91f724e9558bce5a92520de72b4bf000f33d2f29
Signed-off-by: Martin Klozik <martinx.klozik@intel.com>
Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com>
Reviewed-by: Al Morton <acmorton@att.com>
Reviewed-by: Christian Trautman <ctrautma@redhat.com>
Reviewed-by: <bmichalo@redhat.com>
vsperf