diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2008-11-21 19:57:36 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-21 19:57:36 -0500 |
commit | 5c48ef3e2028677a890d46d9a38b19174274f2e9 (patch) | |
tree | 1ef4a75e9054eafa127609bd31f7999dc1fe085f /drivers/net/e1000e/ich8lan.c | |
parent | 8f12fe8653eb699a6bc4f88f1a80312466ea2b0e (diff) |
e1000e: sync change flow control variables with ixgbe
Sync flow control variables and usage model with that found in the ixgbe
driver.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/e1000e/ich8lan.c')
-rw-r--r-- | drivers/net/e1000e/ich8lan.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/net/e1000e/ich8lan.c b/drivers/net/e1000e/ich8lan.c index 11f0dd35c927..5d85f5b5a071 100644 --- a/drivers/net/e1000e/ich8lan.c +++ b/drivers/net/e1000e/ich8lan.c | |||
@@ -2071,12 +2071,17 @@ static s32 e1000_setup_link_ich8lan(struct e1000_hw *hw) | |||
2071 | * the default flow control setting, so we explicitly | 2071 | * the default flow control setting, so we explicitly |
2072 | * set it to full. | 2072 | * set it to full. |
2073 | */ | 2073 | */ |
2074 | if (hw->fc.type == e1000_fc_default) | 2074 | if (hw->fc.requested_mode == e1000_fc_default) |
2075 | hw->fc.type = e1000_fc_full; | 2075 | hw->fc.requested_mode = e1000_fc_full; |
2076 | 2076 | ||
2077 | hw->fc.original_type = hw->fc.type; | 2077 | /* |
2078 | * Save off the requested flow control mode for use later. Depending | ||
2079 | * on the link partner's capabilities, we may or may not use this mode. | ||
2080 | */ | ||
2081 | hw->fc.current_mode = hw->fc.requested_mode; | ||
2078 | 2082 | ||
2079 | hw_dbg(hw, "After fix-ups FlowControl is now = %x\n", hw->fc.type); | 2083 | hw_dbg(hw, "After fix-ups FlowControl is now = %x\n", |
2084 | hw->fc.current_mode); | ||
2080 | 2085 | ||
2081 | /* Continue to configure the copper link. */ | 2086 | /* Continue to configure the copper link. */ |
2082 | ret_val = e1000_setup_copper_link_ich8lan(hw); | 2087 | ret_val = e1000_setup_copper_link_ich8lan(hw); |