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)
commit4452d0999906e3e26b718566362e943fcaa3d694
tree124fa03691574ffb7e290bff82552915a04a5f7b
parent54e0a67f446fae290f99781691eba46c5cda66e7
tg3: Fix stats for 5704 and later devices

Commit 4d95847381228639844c7197deb8b2211274ef22, 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