i40e: Error handling for link event
commitae13670824d5adadc95a881ebfaa6fa8735218f0
authorHarshitha Ramamurthy <harshitha.ramamurthy@intel.com>
Mon, 12 Dec 2016 23:44:16 +0000 (12 15:44 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 19 Feb 2017 04:35:36 +0000 (18 20:35 -0800)
tree1d3beaa33cd2e2bcaf4b710e01513e606cd72a3b
parent5cb259016b4258d7ac53588a01d17da1ceda84b7
i40e: Error handling for link event

There exists an intermittent bug which causes the 'Link Detected'
field reported by the 'ethtool <iface>' command to be 'Yes' when
in fact, there is no link. This patch fixes the problem by
enabling temporary link polling when i40e_get_link_status returns
an error. This causes the driver to remember that an admin queue
command failed and polls, until the function returns with a success.

Change-Id: I64c69b008db4017b8729f3fc27b8f65c8fe2eaa0
Signed-off-by: Harshitha Ramamurthy <harshitha.ramamurthy@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_main.c