aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/ethtool.c
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2009-10-28 14:28:30 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-29 04:04:05 -0400
commit945eb31337c2a8a09a62dcf5aca260bcde9c2a6c (patch)
treedc4e75d957da9a68267aec8b7078791bfb2d7407 /drivers/net/e1000e/ethtool.c
parentd6534799410d2b53e5e80b8a90d6a8bab3de30ed (diff)
e1000e: flow control doesn't re-enable
When changing flow control (pause) parameters, the flow control thresholds (i.e. when to send XON/XOFF frames) may not be setup correctly on parts with copper media. Call the existing e1000_set_fc_watermarks() function to set these thresholds. 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/ethtool.c')
-rw-r--r--drivers/net/e1000e/ethtool.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/net/e1000e/ethtool.c b/drivers/net/e1000e/ethtool.c
index a70999b8c6cf..0364b91488af 100644
--- a/drivers/net/e1000e/ethtool.c
+++ b/drivers/net/e1000e/ethtool.c
@@ -335,10 +335,18 @@ static int e1000_set_pauseparam(struct net_device *netdev,
335 335
336 hw->fc.current_mode = hw->fc.requested_mode; 336 hw->fc.current_mode = hw->fc.requested_mode;
337 337
338 retval = ((hw->phy.media_type == e1000_media_type_fiber) ? 338 if (hw->phy.media_type == e1000_media_type_fiber) {
339 hw->mac.ops.setup_link(hw) : e1000e_force_mac_fc(hw)); 339 retval = hw->mac.ops.setup_link(hw);
340 /* implicit goto out */
341 } else {
342 retval = e1000e_force_mac_fc(hw);
343 if (retval)
344 goto out;
345 e1000e_set_fc_watermarks(hw);
346 }
340 } 347 }
341 348
349out:
342 clear_bit(__E1000_RESETTING, &adapter->state); 350 clear_bit(__E1000_RESETTING, &adapter->state);
343 return retval; 351 return retval;
344} 352}