]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit270c3e317ef86b32ceed4531d684a2f4397bf17e
treed288f902722d44cac4ad4f13ed0246c0ede3c6eb
parent3170df63fe176ad3a1151ab993239fd1e5edccfb
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