Message ID | 20171215015651.6112-1-tjbroadroad@163.com |
---|---|
State | Accepted, archived |
Delegated to: | John Linville |
Headers | show |
Series | ethtool: fix MFLCN register dump for 82599 and newer | expand |
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 <tjbroadroad@163.com> > Signed-off-by: Gao Wayne <Wayne.Gao@emc.com> > Signed-off-by: Wei Net <gw_net@163.com> Thanks, applied.
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];