Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131967
b: refs/heads/master
c: 9ec06ff
h: refs/heads/master
i:
  131965: 1afc534
  131963: f1c5bc3
  131959: e19e6f9
  131951: 515e7ab
  131935: 4a550c6
  131903: 4b3169c
  131839: 7aaa654
v: v3
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Mar 1, 2009
1 parent 2fb82fc commit 47881ee
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 709ab3261e3ed789c0bb31c6ab53c9eccb276522
refs/heads/master: 9ec06ff57a9badef3b6b019f35efc6b21fc27d03
9 changes: 5 additions & 4 deletions trunk/net/ipv4/tcp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,8 @@ static u8 tcp_sacktag_one(struct sk_buff *skb, struct sock *sk,

static int tcp_shifted_skb(struct sock *sk, struct sk_buff *skb,
struct tcp_sacktag_state *state,
unsigned int pcount, int shifted, int mss)
unsigned int pcount, int shifted, int mss,
int dup_sack)
{
struct tcp_sock *tp = tcp_sk(sk);
struct sk_buff *prev = tcp_write_queue_prev(sk, skb);
Expand Down Expand Up @@ -1410,7 +1411,7 @@ static int tcp_shifted_skb(struct sock *sk, struct sk_buff *skb,
}

/* We discard results */
tcp_sacktag_one(skb, sk, state, 0, pcount);
tcp_sacktag_one(skb, sk, state, dup_sack, pcount);

/* Difference in this won't matter, both ACKed by the same cumul. ACK */
TCP_SKB_CB(prev)->sacked |= (TCP_SKB_CB(skb)->sacked & TCPCB_EVER_RETRANS);
Expand Down Expand Up @@ -1561,7 +1562,7 @@ static struct sk_buff *tcp_shift_skb_data(struct sock *sk, struct sk_buff *skb,

if (!skb_shift(prev, skb, len))
goto fallback;
if (!tcp_shifted_skb(sk, skb, state, pcount, len, mss))
if (!tcp_shifted_skb(sk, skb, state, pcount, len, mss, dup_sack))
goto out;

/* Hole filled allows collapsing with the next as well, this is very
Expand All @@ -1580,7 +1581,7 @@ static struct sk_buff *tcp_shift_skb_data(struct sock *sk, struct sk_buff *skb,
len = skb->len;
if (skb_shift(prev, skb, len)) {
pcount += tcp_skb_pcount(skb);
tcp_shifted_skb(sk, skb, state, tcp_skb_pcount(skb), len, mss);
tcp_shifted_skb(sk, skb, state, tcp_skb_pcount(skb), len, mss, 0);
}

out:
Expand Down

0 comments on commit 47881ee

Please sign in to comment.