ice: Do not always bring up PF VSI in ice_ena_vsi()
authorTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 25 Jul 2019 08:55:35 +0000 (01:55 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 20 Aug 2019 21:32:42 +0000 (14:32 -0700)
commite6c45149b88e9dee8a97e6c365fe967c196fd500
treeb579d9b07b79b216749d7e7b3ef00de029d5b500
parentac6f733a7bd5e23ce9d58ef995f51fbd1ad2fa97
ice: Do not always bring up PF VSI in ice_ena_vsi()

During rebuild ice_ena_vsi() is called to recover the VSI state.
This function assumes the PF VSI is always to be enabled, however,
it's possible that during reset/rebuild the interface can be
brought down.  If this occurs, we can attempt to bring up the PF
VSI on a downed interface which can lead to various crashes. If
the interface is not running, do not bring up the associated VSI.

Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c