ixgbe: do not disable flow control in ixgbe_check_mac_link
authorEmil Tantilov <emil.s.tantilov@intel.com>
Fri, 16 Sep 2011 06:27:56 +0000 (06:27 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 5 Oct 2011 09:54:46 +0000 (02:54 -0700)
Disabling flow control in ixgbe_check_mac_link() results in incorrect
reporting by ethtool when link goes down, so remove it.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c

index fa079bbab89a45b58cd784c8481ddbe79d8c58e9..56c32dc16e7fd469de3edb30bcf6844e4fc9175b 100644 (file)
@@ -650,11 +650,6 @@ static s32 ixgbe_check_mac_link_82598(struct ixgbe_hw *hw,
            (ixgbe_validate_link_ready(hw) != 0))
                *link_up = false;
 
-       /* if link is down, zero out the current_mode */
-       if (*link_up == false) {
-               hw->fc.current_mode = ixgbe_fc_none;
-               hw->fc.fc_was_autonegged = false;
-       }
 out:
        return 0;
 }
index 59cd54cfdc1f2015b720b07d3688572935b56ac6..35fa444556b3714424769d30a51b7c9e21ac6174 100644 (file)
@@ -3095,12 +3095,6 @@ s32 ixgbe_check_mac_link_generic(struct ixgbe_hw *hw, ixgbe_link_speed *speed,
        else
                *speed = IXGBE_LINK_SPEED_UNKNOWN;
 
-       /* if link is down, zero out the current_mode */
-       if (*link_up == false) {
-               hw->fc.current_mode = ixgbe_fc_none;
-               hw->fc.fc_was_autonegged = false;
-       }
-
        return 0;
 }