]> git.baikalelectronics.ru Git - kernel.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)
commit0c37d233973d830c478953ee4ac6ddf735617df1
tree29d3a16f12e526d7aa6482acaa4c5a0178408369
parent4c35ea7d10c7adc81ce9fdc8b826536d2aae2a30
ixgbe: fix ethtool stats

In latest changes about 64bit stats on 32bit arches,
[commit ddb23e6bd52bcc39f (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