]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Move the saving of old link info from handle_link_event to link_event
authorCatherine Sullivan <catherine.sullivan@intel.com>
Wed, 21 Oct 2015 23:47:09 +0000 (19:47 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 25 Nov 2015 18:05:56 +0000 (10:05 -0800)
commitbfb2d43a0cd363b7e3ef6560542c576f8fbd4cb7
treebeaedb899c188a78b1404be3c54b2a66bacb1fb1
parentc9c45246a28eb438604d25a327000bde6ca8abe2
i40e: Move the saving of old link info from handle_link_event to link_event

The watchdog only calls link_event not handle_link_event which means
that we need to save the old information in link_event.

Previously when polling we were comparing current data to the old data
saved the last time we actually received a link event. This means that
the polling would only fix link status changes in one direction
depending on what the last old data saved off was.

Change-ID: Ie590f30fdbcb133d0ddad4e07e3eb1aad58255b3
Signed-off-by: Catherine Sullivan <catherine.sullivan@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