]> www.infradead.org Git - users/jedix/linux-maple.git/commit
igb: Check if subordinate VFs are assigned to virtual machines
authorGreg Rose <gregory.v.rose@intel.com>
Fri, 14 Oct 2011 02:57:14 +0000 (02:57 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 13:04:31 +0000 (21:04 +0800)
commit155cbc1be8c79672e9f4768d1e6e6fabad9bf1a8
treed7f091ec0df6b41deba3ac518bab55fcfd0b33f9
parent20ea5bef458c8eeaded676b3966ad76d9f2daf4f
igb: Check if subordinate VFs are assigned to virtual machines

Kvm and the Xen pci-back driver will set a flag in the virtual function
pci device dev_flags when the VF is assigned to a guest VM.  Before
destroying subordinate VFs check to see if the flag is set and if so
skip the call to pci_disable_sriov() to avoid system crashes.

Copy the maintainer for the Xen pci-back driver.  Also CC'ing
maintainers of all drivers found to call pci_disable_sriov().

V2 - Fix  uninitialized variable warning

Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Christian Benvenuti <benve@cisco.com>
Cc: Sathya Perla <sathya.perla@emulex.com>
Cc: Dimitris Michailidis <dm@chelsio.com>
Cc: Jon Mason <jdmason@kudzu.us>
Cc: James Smart <james.smart@emulex.com>
(cherry picked from commit 0224d663063d542b3d829706f3fcbd0f640f19b3)
Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/igb/igb.h
drivers/net/igb/igb_main.c