aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2010-01-17 02:30:44 -0500
committerDavid S. Miller <davem@davemloft.net>2010-01-17 22:16:03 -0500
commit354fcd7774a00809ebefdba75e747364cb22a940 (patch)
tree5608a763f03b1af9ba8650c9a1e99f5546eb0797 /drivers/net/bnx2.h
parenta47430583dab67b23161b0e75226781deed50138 (diff)
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>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r--drivers/net/bnx2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index 939dc44d50a0..b860fbbff355 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -6851,6 +6851,7 @@ struct bnx2 {
6851 dma_addr_t status_blk_mapping; 6851 dma_addr_t status_blk_mapping;
6852 6852
6853 struct statistics_block *stats_blk; 6853 struct statistics_block *stats_blk;
6854 struct statistics_block *temp_stats_blk;
6854 dma_addr_t stats_blk_mapping; 6855 dma_addr_t stats_blk_mapping;
6855 6856
6856 int ctx_pages; 6857 int ctx_pages;