[PATCH] ixgb: Fix data output by ethtool -d
authorMalli Chilakala <mallikarjuna.chilakala@intel.com>
Thu, 11 Aug 2005 20:59:07 +0000 (13:59 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Thu, 11 Aug 2005 21:09:19 +0000 (17:09 -0400)
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>
drivers/net/ixgb/ixgb_ethtool.c

index c80fa000790492bb98a5cffbc812096fb0997dcd..44a07a9dcbc1853d6cf8392477df667885fdcccd 100644 (file)
@@ -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 */
        }