i40e: fix inconsistent statuses after a PF reset
authorHelin Zhang <helin.zhang@intel.com>
Thu, 1 Oct 2015 18:37:38 +0000 (14:37 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 23 Oct 2015 11:32:54 +0000 (04:32 -0700)
commit58fc3267f151f6facfc94c6982bef09a53bb5219
tree182eec55a9d2c869b7c877688ed234a7ab17d98a
parent40d01366e6dd5ef1cb3505f11b2d208cfa3632f3
i40e: fix inconsistent statuses after a PF reset

This patch fixes a problem of possibly getting inconsistent flow control
statuses after a PF reset. Requested_mode was being set with a default
value during probing, but the initial HW state could be different from
this mode.

Change-ID: I772bf07b78616e87086418d4bd87954b66fa17cd
Signed-off-by: Helin Zhang <helin.zhang@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