aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ixgbe/ixgbe_82598.c8
-rw-r--r--drivers/net/ixgbe/ixgbe_common.c8
2 files changed, 10 insertions, 6 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 /*
diff --git a/drivers/net/ixgbe/ixgbe_common.c b/drivers/net/ixgbe/ixgbe_common.c
index 846c9deeaa7a..2d4af5d2d3f7 100644
--- a/drivers/net/ixgbe/ixgbe_common.c
+++ b/drivers/net/ixgbe/ixgbe_common.c
@@ -1907,9 +1907,11 @@ s32 ixgbe_setup_fc_generic(struct ixgbe_hw *hw, s32 packetbuf_num)
1907 * because it causes the controller to just blast out fc packets. 1907 * because it causes the controller to just blast out fc packets.
1908 */ 1908 */
1909 if (!hw->fc.low_water || !hw->fc.high_water || !hw->fc.pause_time) { 1909 if (!hw->fc.low_water || !hw->fc.high_water || !hw->fc.pause_time) {
1910 hw_dbg(hw, "Invalid water mark configuration\n"); 1910 if (hw->fc.requested_mode != ixgbe_fc_none) {
1911 ret_val = IXGBE_ERR_INVALID_LINK_SETTINGS; 1911 hw_dbg(hw, "Invalid water mark configuration\n");
1912 goto out; 1912 ret_val = IXGBE_ERR_INVALID_LINK_SETTINGS;
1913 goto out;
1914 }
1913 } 1915 }
1914 1916
1915 /* 1917 /*