Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315721
b: refs/heads/master
c: 9dc2741
h: refs/heads/master
i:
  315719: 94c5e8f
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jul 20, 2012
1 parent 31f08ab commit ad7afb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 5815d5e7aae3cc9c5e85af83094d4d6498c3f4fc
refs/heads/master: 9dc274151a548ffd215caecec5a8872db8799447
5 changes: 3 additions & 2 deletions trunk/net/ipv4/tcp_cong.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ EXPORT_SYMBOL_GPL(tcp_is_cwnd_limited);
void tcp_slow_start(struct tcp_sock *tp)
{
int cnt; /* increase in packets */
unsigned int delta = 0;

/* RFC3465: ABC Slow start
* Increase only after a full MSS of bytes is acked
Expand All @@ -333,9 +334,9 @@ void tcp_slow_start(struct tcp_sock *tp)
tp->snd_cwnd_cnt += cnt;
while (tp->snd_cwnd_cnt >= tp->snd_cwnd) {
tp->snd_cwnd_cnt -= tp->snd_cwnd;
if (tp->snd_cwnd < tp->snd_cwnd_clamp)
tp->snd_cwnd++;
delta++;
}
tp->snd_cwnd = min(tp->snd_cwnd + delta, tp->snd_cwnd_clamp);
}
EXPORT_SYMBOL_GPL(tcp_slow_start);

Expand Down

0 comments on commit ad7afb4

Please sign in to comment.