]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ixgbe: fix ethtool stats
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 23 Jul 2010 13:44:21 +0000 (13:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jul 2010 03:43:19 +0000 (20:43 -0700)
commit55bad82385f036a844429ff8989732f0ea3bfff9
tree29d3a16f12e526d7aa6482acaa4c5a0178408369
parent9963a8bde60f3c139b7683e2ec7e0bf83c0d7581
ixgbe: fix ethtool stats

In latest changes about 64bit stats on 32bit arches,
[commit 28172739f0a276eb8 (net: fix 64 bit counters on 32 bit arches)],
I missed ixgbe uses a bit of magic in its ixgbe_gstrings_stats
definition.

IXGBE_NETDEV_STAT() must now assume offsets relative to
rtnl_link_stats64, not relative do dev->stats.

As a bonus, we also get 64bit stats on ethtool -S

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_ethtool.c