aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Tantilov <emil.s.tantilov@intel.com>2011-09-15 02:23:10 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-10-05 05:54:33 -0400
commit217995ecd04999284ba4c5745e789314ea99e54f (patch)
treea289f5fba9ab1f6ab9e6785f67966d0dbac4cd12
parent7d145282da8d1ae4ba5f7ead8a4f51183496803c (diff)
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). 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>
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
index ae9fba5d3036..db255fc37863 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
@@ -460,7 +460,7 @@ static void ixgbe_set_msglevel(struct net_device *netdev, u32 data)
460 460
461static int ixgbe_get_regs_len(struct net_device *netdev) 461static int ixgbe_get_regs_len(struct net_device *netdev)
462{ 462{
463#define IXGBE_REGS_LEN 1128 463#define IXGBE_REGS_LEN 1129
464 return IXGBE_REGS_LEN * sizeof(u32); 464 return IXGBE_REGS_LEN * sizeof(u32);
465} 465}
466 466
@@ -771,6 +771,9 @@ static void ixgbe_get_regs(struct net_device *netdev,
771 regs_buff[1125] = IXGBE_READ_REG(hw, IXGBE_PCIEECCCTL); 771 regs_buff[1125] = IXGBE_READ_REG(hw, IXGBE_PCIEECCCTL);
772 regs_buff[1126] = IXGBE_READ_REG(hw, IXGBE_PBTXECC); 772 regs_buff[1126] = IXGBE_READ_REG(hw, IXGBE_PBTXECC);
773 regs_buff[1127] = IXGBE_READ_REG(hw, IXGBE_PBRXECC); 773 regs_buff[1127] = IXGBE_READ_REG(hw, IXGBE_PBRXECC);
774
775 /* 82599 X540 specific registers */
776 regs_buff[1128] = IXGBE_READ_REG(hw, IXGBE_MFLCN);
774} 777}
775 778
776static int ixgbe_get_eeprom_len(struct net_device *netdev) 779static int ixgbe_get_eeprom_len(struct net_device *netdev)