tg3: Save stats across chip resets
authorMatt Carlson <mcarlson@broadcom.com>
Thu, 8 Dec 2011 14:40:14 +0000 (14:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Dec 2011 00:43:47 +0000 (19:43 -0500)
commit92feeabf3f673767c6ee4cfc7fc224098446c1c1
tree61d10fe990942757b130098cd677751062b243bf
parent0e6c9da35ef774109a1b5740144c9d442bd5a5b5
tg3: Save stats across chip resets

Tg3 has a place to store stats, but doesn't really use it.  This patch
modifies the driver so that stats are saved across chip resets and gets
cleared across close / open calls.

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