From: Emil Tantilov Date: Thu, 15 Sep 2011 06:23:10 +0000 (+0000) Subject: ixgbe: send MFLCN to ethtool X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~161 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2c1e4ec18bd9ab8fd6b8d5e363ecee7f9771a724;p=users%2Fjedix%2Flinux-maple.git ixgbe: send MFLCN to ethtool 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 Tested-by: Stephen Ko Signed-off-by: Jeff Kirsher Signed-off-by: Joe Jin --- diff --git a/drivers/net/ixgbe/ixgbe_ethtool.c b/drivers/net/ixgbe/ixgbe_ethtool.c index 9296144a569e..d8dcd9635472 100644 --- a/drivers/net/ixgbe/ixgbe_ethtool.c +++ b/drivers/net/ixgbe/ixgbe_ethtool.c @@ -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)