diff options
Diffstat (limited to 'net/ipv4/tcp_output.c')
| -rw-r--r-- | net/ipv4/tcp_output.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index caf2e2cff293..c5b911f9b662 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
| @@ -194,12 +194,11 @@ void tcp_select_initial_window(int __space, __u32 mss, | |||
| 194 | * will be satisfied with 2. | 194 | * will be satisfied with 2. |
| 195 | */ | 195 | */ |
| 196 | if (mss > (1<<*rcv_wscale)) { | 196 | if (mss > (1<<*rcv_wscale)) { |
| 197 | int init_cwnd; | 197 | int init_cwnd = 4; |
| 198 | 198 | if (mss > 1460*3) | |
| 199 | if (mss > 1460) | ||
| 200 | init_cwnd = 2; | 199 | init_cwnd = 2; |
| 201 | else | 200 | else if (mss > 1460) |
| 202 | init_cwnd = (mss > 1095) ? 3 : 4; | 201 | init_cwnd = 3; |
| 203 | if (*rcv_wnd > init_cwnd*mss) | 202 | if (*rcv_wnd > init_cwnd*mss) |
| 204 | *rcv_wnd = init_cwnd*mss; | 203 | *rcv_wnd = init_cwnd*mss; |
| 205 | } | 204 | } |
