i40evf: Fix a hardware reset support in VF driver
authorPaweł Jabłoński <pawel.jablonski@intel.com>
Thu, 10 May 2018 12:59:49 +0000 (05:59 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 14 May 2018 14:05:16 +0000 (07:05 -0700)
commit27392e57189e6e6f77e78fe9aeb3a2c7e2ccbdf4
tree6566efc8ebab6fe733566e297626719ea9308f5f
parentc79756cb5f084736b138da9319a02f7c72644548
i40evf: Fix a hardware reset support in VF driver

This patch fixes a hardware reset support in VF driver.
It is needed because when a hardware reset is detected
adapter->state is in __I40EVF_RESETTING state before
i40evf_reset_task is called. Without this patch
unloading VF driver after a hardware reset ends
with a system crash.

Signed-off-by: Paweł Jabłoński <pawel.jablonski@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40evf/i40evf_main.c