Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78268
b: refs/heads/master
c: 234b686
h: refs/heads/master
v: v3
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Jan 28, 2008
1 parent 55c5b66 commit 6370413
Show file tree
Hide file tree
Showing 3 changed files with 10 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: d67c58e9ae80ea577785111534e49d3ca757ec50
refs/heads/master: 234b68607006f3721679e900809ccb99e8bfb10c
5 changes: 5 additions & 0 deletions trunk/include/net/tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,11 @@ static inline struct sk_buff *tcp_write_queue_next(struct sock *sk, struct sk_bu
for (; (skb != (struct sk_buff *)&(sk)->sk_write_queue);\
skb = skb->next)

#define tcp_for_write_queue_from_safe(skb, tmp, sk) \
for (tmp = skb->next; \
(skb != (struct sk_buff *)&(sk)->sk_write_queue); \
skb = tmp, tmp = skb->next)

static inline struct sk_buff *tcp_send_head(struct sock *sk)
{
return sk->sk_send_head;
Expand Down
8 changes: 4 additions & 4 deletions trunk/net/ipv4/tcp_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -1350,9 +1350,7 @@ static int tcp_mtu_probe(struct sock *sk)
tcp_insert_write_queue_before(nskb, skb, sk);

len = 0;
while (len < probe_size) {
next = tcp_write_queue_next(sk, skb);

tcp_for_write_queue_from_safe(skb, next, sk) {
copy = min_t(int, skb->len, probe_size - len);
if (nskb->ip_summed)
skb_copy_bits(skb, 0, skb_put(nskb, copy), copy);
Expand Down Expand Up @@ -1381,7 +1379,9 @@ static int tcp_mtu_probe(struct sock *sk)
}

len += copy;
skb = next;

if (len >= probe_size)
break;
}
tcp_init_tso_segs(sk, nskb, nskb->len);

Expand Down

0 comments on commit 6370413

Please sign in to comment.