[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171215015651.6112-1-tjbroadroad@163.com>
Date: Fri, 15 Dec 2017 09:56:51 +0800
From: Zhang Kang <tjbroadroad@....com>
To: linville@...driver.com, netdev@...r.kernel.org
Cc: Zhang Kang <tjbroadroad@....com>, Gao Wayne <Wayne.Gao@....com>,
Wei Net <gw_net@....com>
Subject: [PATCH] ethtool: fix MFLCN register dump for 82599 and newer
Use MFLCN for 82599 and X540 HW instead of FCTRL.
Signed-off-by: Zhang Kang <tjbroadroad@....com>
Signed-off-by: Gao Wayne <Wayne.Gao@....com>
Signed-off-by: Wei Net <gw_net@....com>
---
ixgbe.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ixgbe.c b/ixgbe.c
index ff0e769..c632137 100644
--- a/ixgbe.c
+++ b/ixgbe.c
@@ -232,9 +232,9 @@ ixgbe_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
" Receive Priority Flow Control Packets: %s\n",
reg,
reg & IXGBE_MFLCN_RFCE ? "enabled" : "disabled",
- reg & IXGBE_FCTRL_DPF ? "enabled" : "disabled",
- reg & IXGBE_FCTRL_PMCF ? "enabled" : "disabled",
- reg & IXGBE_FCTRL_RPFCE ? "enabled" : "disabled");
+ reg & IXGBE_MFLCN_DPF ? "enabled" : "disabled",
+ reg & IXGBE_MFLCN_PMCF ? "enabled" : "disabled",
+ reg & IXGBE_MFLCN_RPFCE ? "enabled" : "disabled");
}
reg = regs_buff[516];
--
2.10.2.windows.1
Powered by blists - more mailing lists