]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbevf: Fix statistics corruption
authorGreg Rose <gregory.v.rose@intel.com>
Fri, 4 Jan 2013 07:37:31 +0000 (07:37 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 19 Jan 2013 12:41:57 +0000 (04:41 -0800)
commit4f63d4f45fb20c40cfcb4ca8267c63daf499de6a
tree09e9344691df457a36fca6192760a7c4d3439609
parent3dad14e7503761b372250a33a50bbba554008f9b
ixgbevf: Fix statistics corruption

When the physical function (PF) is reset for any reason the statistics
collection in ixgbevf_update_stats needs to wait to update until after
the reset synchronization ensures that the PF driver is up and running
and is finished with its own reset.  Go ahead and clear the link flag to
indicate this when the control message from the PF is received.  The
reset synchronization and recovery in the watchdog task will eventually
set the link flag up when the PF has resumed.

Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c