]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tg3: Save stats across chip resets
authorMatt Carlson <mcarlson@broadcom.com>
Thu, 8 Dec 2011 14:40:14 +0000 (14:40 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 02:38:16 +0000 (10:38 +0800)
commitafa7eb75d3a786eb4d344e0b617cd26d326d40ae
tree695111ccf0bdbd56f2c844a6b912d213b87d8959
parent581647e07b62e9da7fb94a0930a815e479ef5cfb
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.

(cherry picked from commit 92feeabf3f673767c6ee4cfc7fc224098446c1c1)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c