Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118888
b: refs/heads/master
c: 8f65b53
h: refs/heads/master
v: v3
  • Loading branch information
Doug Leith authored and David S. Miller committed Nov 12, 2008
1 parent 84585e7 commit ed81f78
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 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: d809a1595610a7c0b0bd55f159e5dc37def0ac28
refs/heads/master: 8f65b5354b1a34a536641bd915958662e8af5320
14 changes: 10 additions & 4 deletions trunk/net/ipv4/tcp_htcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,12 @@ static u32 htcp_cwnd_undo(struct sock *sk)
const struct tcp_sock *tp = tcp_sk(sk);
struct htcp *ca = inet_csk_ca(sk);

ca->last_cong = ca->undo_last_cong;
ca->maxRTT = ca->undo_maxRTT;
ca->old_maxB = ca->undo_old_maxB;
if (ca->undo_last_cong) {
ca->last_cong = ca->undo_last_cong;
ca->maxRTT = ca->undo_maxRTT;
ca->old_maxB = ca->undo_old_maxB;
ca->undo_last_cong = 0;
}

return max(tp->snd_cwnd, (tp->snd_ssthresh << 7) / ca->beta);
}
Expand Down Expand Up @@ -268,7 +271,10 @@ static void htcp_state(struct sock *sk, u8 new_state)
case TCP_CA_Open:
{
struct htcp *ca = inet_csk_ca(sk);
ca->last_cong = jiffies;
if (ca->undo_last_cong) {
ca->last_cong = jiffies;
ca->undo_last_cong = 0;
}
}
break;
case TCP_CA_CWR:
Expand Down

0 comments on commit ed81f78

Please sign in to comment.