summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMalli Chilakala2005-08-11 22:59:07 +0200
committerJeff Garzik2005-08-11 23:09:19 +0200
commit9ef2eec39383f8fe2bd7c9fac4dfdd4fdf7173e6 (patch)
tree7f0ee44df6d39666b74de88e55d9d08a93b6ee8f /drivers
parent[PATCH] ixgb: Fix Broadcast/Multicast packets received statistics (diff)
downloadkernel-qcow2-linux-9ef2eec39383f8fe2bd7c9fac4dfdd4fdf7173e6.tar.gz
kernel-qcow2-linux-9ef2eec39383f8fe2bd7c9fac4dfdd4fdf7173e6.tar.xz
kernel-qcow2-linux-9ef2eec39383f8fe2bd7c9fac4dfdd4fdf7173e6.zip
[PATCH] ixgb: Fix data output by ethtool -d
Fix data output by ethtool -d Signed-off-by: Mallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com> Signed-off-by: Ganesh Venkatesan <ganesh.venkatesan@intel.com> Signed-off-by: John Ronciak <john.ronciak@intel.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ixgb/ixgb_ethtool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ixgb/ixgb_ethtool.c b/drivers/net/ixgb/ixgb_ethtool.c
index c80fa0007904..44a07a9dcbc1 100644
--- a/drivers/net/ixgb/ixgb_ethtool.c
+++ b/drivers/net/ixgb/ixgb_ethtool.c
@@ -301,7 +301,8 @@ ixgb_get_regs(struct net_device *netdev,
*reg++ = IXGB_READ_REG(hw, RAIDC); /* 19 */
*reg++ = IXGB_READ_REG(hw, RXCSUM); /* 20 */
- for (i = 0; i < IXGB_RAR_ENTRIES; i++) {
+ /* there are 16 RAR entries in hardware, we only use 3 */
+ for(i = 0; i < 16; i++) {
*reg++ = IXGB_READ_REG_ARRAY(hw, RAL, (i << 1)); /*21,...,51 */
*reg++ = IXGB_READ_REG_ARRAY(hw, RAH, (i << 1)); /*22,...,52 */
}