netdev
[Top] [All Lists]

[PATCH] fix "ethtool -S" for tg3

To: davem@xxxxxxxxxx
Subject: [PATCH] fix "ethtool -S" for tg3
From: Arthur Kepner <akepner@xxxxxxx>
Date: Tue, 11 May 2004 12:57:42 -0700
Cc: netdev@xxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>