Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299963
b: refs/heads/master
c: 1cebce3
h: refs/heads/master
i:
  299961: 0db82cc
  299959: 19d5178
v: v3
  • Loading branch information
Yuchung Cheng authored and David S. Miller committed Apr 30, 2012
1 parent 6dcbd39 commit 4942881
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 05be18241e83d2ac6b656c8f924e74b3998c173f
refs/heads/master: 1cebce36d660c83bd1353e41f3e66abd4686f215
9 changes: 6 additions & 3 deletions trunk/net/ipv4/tcp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -2868,11 +2868,14 @@ static inline void tcp_complete_cwr(struct sock *sk)

/* Do not moderate cwnd if it's already undone in cwr or recovery. */
if (tp->undo_marker) {
if (inet_csk(sk)->icsk_ca_state == TCP_CA_CWR)
if (inet_csk(sk)->icsk_ca_state == TCP_CA_CWR) {
tp->snd_cwnd = min(tp->snd_cwnd, tp->snd_ssthresh);
else /* PRR */
tp->snd_cwnd_stamp = tcp_time_stamp;
} else if (tp->snd_ssthresh < TCP_INFINITE_SSTHRESH) {
/* PRR algorithm. */
tp->snd_cwnd = tp->snd_ssthresh;
tp->snd_cwnd_stamp = tcp_time_stamp;
tp->snd_cwnd_stamp = tcp_time_stamp;
}
}
tcp_ca_event(sk, CA_EVENT_COMPLETE_CWR);
}
Expand Down

0 comments on commit 4942881

Please sign in to comment.