diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2011-04-20 03:57:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-21 20:05:54 -0400 |
commit | 4d95847381228639844c7197deb8b2211274ef22 (patch) | |
tree | d288f902722d44cac4ad4f13ed0246c0ede3c6eb /drivers/net/tg3.h | |
parent | e138f96bf5142c400b6b00f4cf69031bccc48f32 (diff) |
tg3: Workaround rx_discards stat bug
The 5717, 5718, 5719 A0, and 5720 A0 has a bug where the rx_discards
statistic counter will increment when dropping unwanted multicast
frames. This patch works around the problem by attempting to
recreate the data using other means. The resulting value will not be
accurate, but it can still serve as a problem indicator.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r-- | drivers/net/tg3.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index 224c3e0ec695..db50bfe046e4 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h | |||
@@ -147,6 +147,7 @@ | |||
147 | #define CHIPREV_ID_5717_A0 0x05717000 | 147 | #define CHIPREV_ID_5717_A0 0x05717000 |
148 | #define CHIPREV_ID_57765_A0 0x57785000 | 148 | #define CHIPREV_ID_57765_A0 0x57785000 |
149 | #define CHIPREV_ID_5719_A0 0x05719000 | 149 | #define CHIPREV_ID_5719_A0 0x05719000 |
150 | #define CHIPREV_ID_5720_A0 0x05720000 | ||
150 | #define GET_ASIC_REV(CHIP_REV_ID) ((CHIP_REV_ID) >> 12) | 151 | #define GET_ASIC_REV(CHIP_REV_ID) ((CHIP_REV_ID) >> 12) |
151 | #define ASIC_REV_5700 0x07 | 152 | #define ASIC_REV_5700 0x07 |
152 | #define ASIC_REV_5701 0x00 | 153 | #define ASIC_REV_5701 0x00 |
@@ -2602,6 +2603,7 @@ struct tg3_hw_stats { | |||
2602 | tg3_stat64_t dma_write_prioq_full; | 2603 | tg3_stat64_t dma_write_prioq_full; |
2603 | tg3_stat64_t rxbds_empty; | 2604 | tg3_stat64_t rxbds_empty; |
2604 | tg3_stat64_t rx_discards; | 2605 | tg3_stat64_t rx_discards; |
2606 | tg3_stat64_t mbuf_lwm_thresh_hit; | ||
2605 | tg3_stat64_t rx_errors; | 2607 | tg3_stat64_t rx_errors; |
2606 | tg3_stat64_t rx_threshold_hit; | 2608 | tg3_stat64_t rx_threshold_hit; |
2607 | 2609 | ||