From: Sathya Perla Date: Tue, 8 May 2012 19:41:24 +0000 (+0000) Subject: be2net: avoid disabling sriov while VFs are assigned X-Git-Tag: v3.5-rc1~109^2~113 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39f1d94d300a58eb3e9b851d077cada4e2fa9d46;p=pandora-kernel.git be2net: avoid disabling sriov while VFs are assigned Calling pci_disable_sriov() while VFs are assigned to VMs causes kernel panic. This patch uses PCI_DEV_FLAGS_ASSIGNED bit state of the VF's pci_dev to avoid this. Also, the unconditional function reset cmd issued on a PF probe can delete the VF configuration for the previously enabled VFs. A scratchpad register is now used to issue a function reset only when needed (i.e., in a crash dump scenario.) Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- Reading git-diff-tree failed