diff options
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 2e970e9f4e09..1191cac72109 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -263,7 +263,7 @@ static void __tcp_ecn_check_ce(struct tcp_sock *tp, const struct sk_buff *skb) | |||
263 | * it is probably a retransmit. | 263 | * it is probably a retransmit. |
264 | */ | 264 | */ |
265 | if (tp->ecn_flags & TCP_ECN_SEEN) | 265 | if (tp->ecn_flags & TCP_ECN_SEEN) |
266 | tcp_enter_quickack_mode((struct sock *)tp, TCP_MAX_QUICKACKS); | 266 | tcp_enter_quickack_mode((struct sock *)tp, 1); |
267 | break; | 267 | break; |
268 | case INET_ECN_CE: | 268 | case INET_ECN_CE: |
269 | if (tcp_ca_needs_ecn((struct sock *)tp)) | 269 | if (tcp_ca_needs_ecn((struct sock *)tp)) |
@@ -271,7 +271,7 @@ static void __tcp_ecn_check_ce(struct tcp_sock *tp, const struct sk_buff *skb) | |||
271 | 271 | ||
272 | if (!(tp->ecn_flags & TCP_ECN_DEMAND_CWR)) { | 272 | if (!(tp->ecn_flags & TCP_ECN_DEMAND_CWR)) { |
273 | /* Better not delay acks, sender can have a very low cwnd */ | 273 | /* Better not delay acks, sender can have a very low cwnd */ |
274 | tcp_enter_quickack_mode((struct sock *)tp, TCP_MAX_QUICKACKS); | 274 | tcp_enter_quickack_mode((struct sock *)tp, 1); |
275 | tp->ecn_flags |= TCP_ECN_DEMAND_CWR; | 275 | tp->ecn_flags |= TCP_ECN_DEMAND_CWR; |
276 | } | 276 | } |
277 | tp->ecn_flags |= TCP_ECN_SEEN; | 277 | tp->ecn_flags |= TCP_ECN_SEEN; |