aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ixgbe/ixgbe_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index e3442f47f932..09394c14ee51 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -4643,13 +4643,13 @@ static void ixgbe_watchdog_task(struct work_struct *work)
4643 if (hw->mac.type == ixgbe_mac_82599EB) { 4643 if (hw->mac.type == ixgbe_mac_82599EB) {
4644 u32 mflcn = IXGBE_READ_REG(hw, IXGBE_MFLCN); 4644 u32 mflcn = IXGBE_READ_REG(hw, IXGBE_MFLCN);
4645 u32 fccfg = IXGBE_READ_REG(hw, IXGBE_FCCFG); 4645 u32 fccfg = IXGBE_READ_REG(hw, IXGBE_FCCFG);
4646 flow_rx = (mflcn & IXGBE_MFLCN_RFCE); 4646 flow_rx = !!(mflcn & IXGBE_MFLCN_RFCE);
4647 flow_tx = (fccfg & IXGBE_FCCFG_TFCE_802_3X); 4647 flow_tx = !!(fccfg & IXGBE_FCCFG_TFCE_802_3X);
4648 } else { 4648 } else {
4649 u32 frctl = IXGBE_READ_REG(hw, IXGBE_FCTRL); 4649 u32 frctl = IXGBE_READ_REG(hw, IXGBE_FCTRL);
4650 u32 rmcs = IXGBE_READ_REG(hw, IXGBE_RMCS); 4650 u32 rmcs = IXGBE_READ_REG(hw, IXGBE_RMCS);
4651 flow_rx = (frctl & IXGBE_FCTRL_RFCE); 4651 flow_rx = !!(frctl & IXGBE_FCTRL_RFCE);
4652 flow_tx = (rmcs & IXGBE_RMCS_TFCE_802_3X); 4652 flow_tx = !!(rmcs & IXGBE_RMCS_TFCE_802_3X);
4653 } 4653 }
4654 4654
4655 printk(KERN_INFO "ixgbe: %s NIC Link is Up %s, " 4655 printk(KERN_INFO "ixgbe: %s NIC Link is Up %s, "