i40e: Disable offline diagnostics if VFs are enabled
authorGreg Rose <gregory.v.rose@intel.com>
Fri, 17 Apr 2015 00:05:59 +0000 (20:05 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 28 May 2015 10:36:10 +0000 (03:36 -0700)
commite17bc411aea8fbebc51857037f104ab09f765120
treebc4528e621b1652a131e4a9a7ce39f88ed3b7cae
parente120814d74bc805769d18ed7177f43a17a88fd40
i40e: Disable offline diagnostics if VFs are enabled

Require the user to disable virtual functions before running the device
offline diagnostics.  The offline diagnostics are intended to ensure
basic operation of the device - it is beyond the scope of the diagnostic
test to handle the additional complexity of bringing all the virtual
functions offline and then back online for each test run.

Change-ID: Ic0b854851a09fc85df0c9e82c220e45885457c30
Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c