tg3: Workaround rx_discards stat bug
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 20 Apr 2011 07:57:35 +0000 (07:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Apr 2011 00:05:54 +0000 (17:05 -0700)
commit4d95847381228639844c7197deb8b2211274ef22
treed288f902722d44cac4ad4f13ed0246c0ede3c6eb
parente138f96bf5142c400b6b00f4cf69031bccc48f32
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>
drivers/net/tg3.c
drivers/net/tg3.h