]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2: Save statistics during reset.
authorMichael Chan <mchan@broadcom.com>
Sun, 17 Jan 2010 07:30:44 +0000 (07:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jan 2010 03:16:03 +0000 (19:16 -0800)
commita677249c5edd3dd17e979f5c056f0a10e53d63e2
tree5608a763f03b1af9ba8650c9a1e99f5546eb0797
parentcc112a8082146df352161e9600d6523e3fe656a4
bnx2: Save statistics during reset.

MTU changes, ring size changes, etc cause the chip to be reset and the
statisctics flushed.  To keep track of the accumulated statistics, we
add code to save the whole statistics block before reset.  We also
modify the macros and statistics functions to return the sum of the
saved and current counters.

Based on original patch by Breno Leitao <leitao@linux.vnet.ibm.com>

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c
drivers/net/bnx2.h