ixgbe: Do not run all Diagnostic offline tests when VFs are active
authorGreg Rose <gregory.v.rose@intel.com>
Thu, 25 Mar 2010 17:06:48 +0000 (17:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Mar 2010 15:33:21 +0000 (08:33 -0700)
commite7d481a6f3c13041446b7bb8f98ab861460076a3
tree5fd3e1d1d08ce6637df08937b4ad940322845b9e
parente017b60316468f21a63bdd4affefaf81a7f988fd
ixgbe: Do not run all Diagnostic offline tests when VFs are active

When running the offline diagnostic tests check to see if any VFs are
online.  If so then only run the link test.  This is necessary because
the VFs running in guest VMs aren't aware of when the PF is taken
offline for a diagnostic test.  Also put a message to the system log
telling the system administrator to take the VFs offline manually if
(s)he wants to run a full diagnostic.  Return 1 on each of the tests
not run to alert the user of the condition.

Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_ethtool.c