Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95382
b: refs/heads/master
c: ce447eb
h: refs/heads/master
v: v3
  • Loading branch information
John Heffner authored and David S. Miller committed Apr 29, 2008
1 parent 7ce9ce4 commit a6152d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: d0313587547092af7f5ee8a576793e1e5d61be89
refs/heads/master: ce447eb91409225f8a488f6b7b2a1bdf7b2d884f
11 changes: 4 additions & 7 deletions trunk/net/ipv4/tcp_cong.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,14 +285,11 @@ int tcp_is_cwnd_limited(const struct sock *sk, u32 in_flight)
if (in_flight >= tp->snd_cwnd)
return 1;

if (!sk_can_gso(sk))
return 0;

left = tp->snd_cwnd - in_flight;
if (sysctl_tcp_tso_win_divisor)
return left * sysctl_tcp_tso_win_divisor < tp->snd_cwnd;
else
return left <= tcp_max_burst(tp);
if (sk_can_gso(sk) &&
left * sysctl_tcp_tso_win_divisor < tp->snd_cwnd)
return 1;
return left <= tcp_max_burst(tp);
}
EXPORT_SYMBOL_GPL(tcp_is_cwnd_limited);

Expand Down

0 comments on commit a6152d2

Please sign in to comment.