]> 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)
commit9d5a9d3e6daa13d20dfaf99e0429bbdc61303381
tree09e9344691df457a36fca6192760a7c4d3439609
parent09fa9f28f6f6a2e37afc69fde58a635f3ebbc1c0
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