]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ixgbe: send MFLCN to ethtool
authorEmil Tantilov <emil.s.tantilov@intel.com>
Thu, 15 Sep 2011 06:23:10 +0000 (06:23 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 14:14:17 +0000 (22:14 +0800)
MFLCN register is used to set Rx flow control on parts newer than 82598.

This patch sends the value of MFLCN to ethtool, so it can be used in a
register dump (ethtool -d).

(cherry picked from commit 217995ecd04999284ba4c5745e789314ea99e54f)
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_ethtool.c

index 9296144a569e57585bfe5424e868acbd4a8cff97..d8dcd9635472ed0b290a1bb531a2449ec93571c0 100644 (file)
@@ -459,7 +459,7 @@ static void ixgbe_set_msglevel(struct net_device *netdev, u32 data)
 
 static int ixgbe_get_regs_len(struct net_device *netdev)
 {
-#define IXGBE_REGS_LEN  1128
+#define IXGBE_REGS_LEN  1129
        return IXGBE_REGS_LEN * sizeof(u32);
 }
 
@@ -770,6 +770,9 @@ static void ixgbe_get_regs(struct net_device *netdev,
        regs_buff[1125] = IXGBE_READ_REG(hw, IXGBE_PCIEECCCTL);
        regs_buff[1126] = IXGBE_READ_REG(hw, IXGBE_PBTXECC);
        regs_buff[1127] = IXGBE_READ_REG(hw, IXGBE_PBRXECC);
+
+       /* 82599 X540 specific registers  */
+       regs_buff[1128] = IXGBE_READ_REG(hw, IXGBE_MFLCN);
 }
 
 static int ixgbe_get_eeprom_len(struct net_device *netdev)