|
@@ -589,7 +589,7 @@ static inline int tcp_bound_to_half_wnd(struct tcp_sock *tp, int pktsize)
|
|
* On the other hand, for extremely large MSS devices, handling
|
|
* On the other hand, for extremely large MSS devices, handling
|
|
* smaller than MSS windows in this way does make sense.
|
|
* smaller than MSS windows in this way does make sense.
|
|
*/
|
|
*/
|
|
- if (tp->max_window >= 512)
|
|
|
|
|
|
+ if (tp->max_window > TCP_MSS_DEFAULT)
|
|
cutoff = (tp->max_window >> 1);
|
|
cutoff = (tp->max_window >> 1);
|
|
else
|
|
else
|
|
cutoff = tp->max_window;
|
|
cutoff = tp->max_window;
|