[PATCH] ethtool: fix MFLCN register dump for 82599 and newer

Subsystems: the rest

STALE3223d

2 messages, 2 authors, 2017-12-18 · open the first message on its own page

[PATCH] ethtool: fix MFLCN register dump for 82599 and newer

From: Zhang Kang <hidden>
Date: 2017-12-15 01:58:00

Use MFLCN for 82599 and X540 HW instead of FCTRL.

Signed-off-by: Zhang Kang <redacted>
Signed-off-by: Gao Wayne <redacted>
Signed-off-by: Wei Net <redacted>
---
 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

Re: [PATCH] ethtool: fix MFLCN register dump for 82599 and newer

From: John W. Linville <hidden>
Date: 2017-12-18 18:45:18

On Fri, Dec 15, 2017 at 09:56:51AM +0800, Zhang Kang wrote:
Use MFLCN for 82599 and X540 HW instead of FCTRL.

Signed-off-by: Zhang Kang <redacted>
Signed-off-by: Gao Wayne <redacted>
Signed-off-by: Wei Net <redacted>
Thanks, applied.

-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help