diff options
author | PJ Waskiewicz <peter.p.waskiewicz.jr@intel.com> | 2009-04-09 18:27:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-11 05:48:00 -0400 |
commit | d3e9c56cafb98040c8601dcc784a773ac86da18b (patch) | |
tree | f30426aa7370e1d9cc62fbaaec5098c58740bffc /drivers/net/ixgbe/ixgbe_82598.c | |
parent | e80e887a959ca41066412582c5f79aae5ffd5821 (diff) |
ixgbe: Don't return error in flow control configuration if FC is off
When flow control is disabled, an invalid low/high watermark configuration
should not matter.
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@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/ixgbe/ixgbe_82598.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_82598.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/ixgbe/ixgbe_82598.c b/drivers/net/ixgbe/ixgbe_82598.c index 63aacd53aab7..1e1d8b79f9e3 100644 --- a/drivers/net/ixgbe/ixgbe_82598.c +++ b/drivers/net/ixgbe/ixgbe_82598.c | |||
@@ -381,9 +381,11 @@ static s32 ixgbe_setup_fc_82598(struct ixgbe_hw *hw, s32 packetbuf_num) | |||
381 | * because it causes the controller to just blast out fc packets. | 381 | * because it causes the controller to just blast out fc packets. |
382 | */ | 382 | */ |
383 | if (!hw->fc.low_water || !hw->fc.high_water || !hw->fc.pause_time) { | 383 | if (!hw->fc.low_water || !hw->fc.high_water || !hw->fc.pause_time) { |
384 | hw_dbg(hw, "Invalid water mark configuration\n"); | 384 | if (hw->fc.requested_mode != ixgbe_fc_none) { |
385 | ret_val = IXGBE_ERR_INVALID_LINK_SETTINGS; | 385 | hw_dbg(hw, "Invalid water mark configuration\n"); |
386 | goto out; | 386 | ret_val = IXGBE_ERR_INVALID_LINK_SETTINGS; |
387 | goto out; | ||
388 | } | ||
387 | } | 389 | } |
388 | 390 | ||
389 | /* | 391 | /* |