i40e: Make VF resets more reliable
authorMitch Williams <mitch.a.williams@intel.com>
Fri, 18 Mar 2016 19:18:09 +0000 (12:18 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 6 Apr 2016 03:33:19 +0000 (20:33 -0700)
commit7369ca8745499d001663e1dccf15064a3eb34b4d
treeb8125fe67439638c37680fa1306d3ba774904ecb
parentd6bf58c2e88f9e0cfc029c158e1182eb1f07d7eb
i40e: Make VF resets more reliable

Clear the VFLR bit immediately after triggering a reset instead of
waiting until after cleanup is complete. Make sure to trigger a reset
every time, not just if the PF is up.

These changes fix a problem where VF resets would get lost by the PF,
preventing the VF driver from initializing.

Change-ID: I5945cf2884095b7b0554867c64df8617e71d9d29
Signed-off-by: Mitch Williams <mitch.a.williams@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_virtchnl_pf.c