Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74222
b: refs/heads/master
c: 7f9c33e
h: refs/heads/master
v: v3
  • Loading branch information
Ilpo Järvinen authored and Herbert Xu committed Nov 23, 2007
1 parent a61e510 commit 43e0c51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: 91cc17c0e5e5ada156a8d5787a2509d263ea6bbf
refs/heads/master: 7f9c33e515353ea91afc62341161fead19e78567
7 changes: 1 addition & 6 deletions trunk/net/ipv4/tcp_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -1321,12 +1321,7 @@ static int tcp_mtu_probe(struct sock *sk)
}

/* Have enough data in the send queue to probe? */
len = 0;
if ((skb = tcp_send_head(sk)) == NULL)
return -1;
while ((len += skb->len) < size_needed && !tcp_skb_is_last(sk, skb))
skb = tcp_write_queue_next(sk, skb);
if (len < size_needed)
if (tp->write_seq - tp->snd_nxt < size_needed)
return -1;

if (tp->snd_wnd < size_needed)
Expand Down

0 comments on commit 43e0c51

Please sign in to comment.