igb: cleanup flow control configuration to make requested/current more clear
[deliverable/linux.git] / drivers / net / igb / e1000_phy.c
index f50fac25be403167f147c1867b31f4b4cac8bb31..c1f4da630420f186dfbff445c65bd943b95a1738 100644 (file)
@@ -735,7 +735,7 @@ static s32 igb_phy_setup_autoneg(struct e1000_hw *hw)
         *  other:  No software override.  The flow control configuration
         *          in the EEPROM is used.
         */
-       switch (hw->fc.type) {
+       switch (hw->fc.current_mode) {
        case e1000_fc_none:
                /*
                 * Flow control (RX & TX) is completely disabled by a
@@ -992,7 +992,7 @@ static void igb_phy_force_speed_duplex_setup(struct e1000_hw *hw,
        u32 ctrl;
 
        /* Turn off flow control when forcing speed/duplex */
-       hw->fc.type = e1000_fc_none;
+       hw->fc.current_mode = e1000_fc_none;
 
        /* Force speed/duplex on the mac */
        ctrl = rd32(E1000_CTRL);
This page took 0.050276 seconds and 5 git commands to generate.