]> git.baikalelectronics.ru Git - kernel.git/commit
igb: update stats before doing reset in igb_down
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 6 Feb 2009 23:22:32 +0000 (23:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Feb 2009 10:43:16 +0000 (02:43 -0800)
commitacf7bd8c0429998c8c5759adfb9d89330d26632e
treed76254747749a61db621d99bb4a5867289cc40b4
parentff84fe1242af3f9152f05785c13d2aca62d95250
igb: update stats before doing reset in igb_down

It was seen with repeated interface up/down testing that there was a large
stray between the stats reported by the queues and the stats reported by the
HW.  It was found to be an issue in that hw stats were being reset without
first being recorded.  This change records the stats before wiping them from
the system via the reset.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/igb_main.c