netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix "ethtool -S" for tg3
@ 2004-05-11 19:57 Arthur Kepner
  2004-05-12 19:08 ` David S. Miller
  0 siblings, 1 reply; 8+ messages in thread
From: Arthur Kepner @ 2004-05-11 19:57 UTC (permalink / raw)
  To: davem; +Cc: netdev


Here's a small mod I had to make to get "ethtool -S" to work with tg3 in
2.6.6:

8<-----------------------------------------------------------------------------
--- linux/drivers/net/tg3.c     2004-05-11 12:11:45.000000000 -0700
+++ linux.orig/drivers/net/tg3.c        2004-05-11 12:34:47.000000000 -0700
@@ -6288,7 +6288,7 @@
                                   struct ethtool_stats *estats, u64 *tmp_stats)
 {
        struct tg3 *tp = dev->priv;
-       memcpy(tmp_stats, &tp->estats, sizeof(tp->estats));
+       memcpy(tmp_stats, tg3_get_estats(tp), sizeof(tp->estats));
 }
8<-----------------------------------------------------------------------------

--

Arthur

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-05-22 12:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-11 19:57 [PATCH] fix "ethtool -S" for tg3 Arthur Kepner
2004-05-12 19:08 ` David S. Miller
2004-05-12 20:00   ` Arthur Kepner
2004-05-20  4:26     ` David S. Miller
2004-05-21 21:04     ` [PATCH] "lockless loopback" patch for 2.6.6 Arthur Kepner
2004-05-21 21:45       ` Stephen Hemminger
2004-05-21 21:45       ` David S. Miller
2004-05-22 12:20       ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).