i40e: Close client on suspend and restore client MSIx on resume
authorShiraz Saleem <shiraz.saleem@intel.com>
Mon, 19 Mar 2018 16:28:03 +0000 (09:28 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 19 Mar 2018 16:46:09 +0000 (09:46 -0700)
commitddbb8d5dd9b7f58293f196eab71449d0242c028d
tree9c5f3d7d9bdd33e49e8338e828d28ad9ef3b4d1c
parent88244a48d2ddebbe041ec4f07e40598cfd8bf06f
i40e: Close client on suspend and restore client MSIx on resume

During suspend client MSIx vectors are freed while they are still
in use causing a crash on entering S3.

Fix this calling client close before freeing up its MSIx vectors.
Also update the client MSIx vectors on resume before client
open is called.

Fixes commit b980c0634fe5 ("i40e: shutdown all IRQs and disable MSI-X
when suspended")

Reported-by: Stefan Assmann <sassmann@redhat.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@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.h
drivers/net/ethernet/intel/i40e/i40e_client.c
drivers/net/ethernet/intel/i40e/i40e_main.c