]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i40e: Don't disable SR-IOV when VFs are assigned
authorMitch Williams <mitch.a.williams@intel.com>
Fri, 4 Apr 2014 04:43:14 +0000 (04:43 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 21 May 2014 10:36:56 +0000 (03:36 -0700)
commit9e5634dfb40c06c87f4a30a544f618f1c12897d4
tree5f87cdcccd5f6607eff125b9e0dc94101c77ff62
parent31cd840e6c373c562e1755804c32824ce2c0370c
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 <mitch.a.williams@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c