LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ethtool-fix-MFLCN-register-dump-for-82599-and-newer.patch of Package ethtool (Project openSUSE:Leap:15.1:Update)

From: Zhang Kang <tjbroadroad@163.com>
Date: Fri, 15 Dec 2017 09:56:51 +0800
Subject: ethtool: fix MFLCN register dump for 82599 and newer
Patch-mainline: v4.15
Git-commit: 1e02fb0de17084133744979c50cc9e80495d2526
References: bsc#1088294

Use MFLCN for 82599 and X540 HW instead of FCTRL.

Signed-off-by: Zhang Kang <tjbroadroad@163.com>
Signed-off-by: Gao Wayne <Wayne.Gao@emc.com>
Signed-off-by: Wei Net <gw_net@163.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Acked-by: Michal Kubecek <mkubecek@suse.cz>

---
 ixgbe.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ixgbe.c b/ixgbe.c
index ff0e769cb7a8..c6321378c29f 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.16.3