]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Fix stats for 5704 and later devices
authorMatt Carlson <mcarlson@broadcom.com>
Thu, 19 May 2011 12:12:51 +0000 (12:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 May 2011 22:00:00 +0000 (18:00 -0400)
commit7af7462df12236d982fa857be933e79132ee5084
tree124fa03691574ffb7e290bff82552915a04a5f7b
parentb076d297a0114b8f2020051026e67e1179702bbf
tg3: Fix stats for 5704 and later devices

Commit 270c3e317ef86b32ceed4531d684a2f4397bf17e, entitled
"tg3: Workaround rx_discards stat bug" modified the hardware statistics
data structure.  The modification shifted the statistics so that the
labels no longer corresponded to the counter values.  This patch fixes
the problem by utilizing reserved space for the new counters.

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