From: Mitch Williams Date: Fri, 4 Apr 2014 04:43:14 +0000 (+0000) Subject: i40e: Don't disable SR-IOV when VFs are assigned X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~177^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e5634dfb40c06c87f4a30a544f618f1c12897d4;p=pandora-kernel.git i40e: Don't disable SR-IOV when VFs are assigned When VFs are assigned to active VMs and we disable SR-IOV out from under them, bad things happen. Currently, the VM does not crash, but the VFs lose all resources and have no way to get them back. Add an additional check for when the user is disabling through sysfs, and add a comment to clarify why we check twice. Change-ID: Icad78eef516e4e1e4a87874d59132bc3baa058d4 Signed-off-by: Mitch Williams Tested-by: Sibai Li Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed