Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22243
b: refs/heads/master
c: c33ad6e
h: refs/heads/master
i:
  22241: 52ee061
  22239: b3e3f46
v: v3
  • Loading branch information
Baruch Even authored and David S. Miller committed Mar 21, 2006
1 parent 8c01dfd commit be71f21
Show file tree
Hide file tree
Showing 2 changed files with 3 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: b191ba0d599928372be5a89f75486eb58efab48a
refs/heads/master: c33ad6e476e4cdc245215f3eb5b3df353df1b370
4 changes: 2 additions & 2 deletions trunk/net/ipv4/tcp_htcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static inline void measure_rtt(struct sock *sk)
if (icsk->icsk_ca_state == TCP_CA_Open && tp->snd_ssthresh < 0xFFFF && ca->ccount > 3) {
if (ca->maxRTT < ca->minRTT)
ca->maxRTT = ca->minRTT;
if (ca->maxRTT < srtt && srtt <= ca->maxRTT+HZ/50)
if (ca->maxRTT < srtt && srtt <= ca->maxRTT+msecs_to_jiffies(20))
ca->maxRTT = srtt;
}
}
Expand Down Expand Up @@ -135,7 +135,7 @@ static inline void htcp_beta_update(struct htcp *ca, u32 minRTT, u32 maxRTT)
}
}

if (ca->modeswitch && minRTT > max(HZ/100, 1) && maxRTT) {
if (ca->modeswitch && minRTT > msecs_to_jiffies(10) && maxRTT) {
ca->beta = (minRTT<<7)/maxRTT;
if (ca->beta < BETA_MIN)
ca->beta = BETA_MIN;
Expand Down

0 comments on commit be71f21

Please sign in to comment.