diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2005-09-10 20:19:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-09-10 20:19:09 -0400 |
commit | e130af5dab2abbf01c5d92ec5ac05912cf3d9aa7 (patch) | |
tree | 5f2363252080f87c613bc3f565cfffe15904b1fa /net/ipv4/tcp_output.c | |
parent | 2a0445158192246c421467320af0d2f45a98f02c (diff) |
[TCP]: Fix double adjustment of tp->{lost,left}_out in tcp_fragment().
There is an extra left_out/lost_out adjustment in tcp_fragment which
means that the lost_out accounting is always wrong. This patch removes
that chunk of code.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 15e1134da1b2..c10e4435e3b1 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -485,11 +485,6 @@ int tcp_fragment(struct sock *sk, struct sk_buff *skb, u32 len, unsigned int mss | |||
485 | TCP_SKB_CB(buff)->when = TCP_SKB_CB(skb)->when; | 485 | TCP_SKB_CB(buff)->when = TCP_SKB_CB(skb)->when; |
486 | buff->tstamp = skb->tstamp; | 486 | buff->tstamp = skb->tstamp; |
487 | 487 | ||
488 | if (TCP_SKB_CB(skb)->sacked & TCPCB_LOST) { | ||
489 | tp->lost_out -= tcp_skb_pcount(skb); | ||
490 | tp->left_out -= tcp_skb_pcount(skb); | ||
491 | } | ||
492 | |||
493 | old_factor = tcp_skb_pcount(skb); | 488 | old_factor = tcp_skb_pcount(skb); |
494 | 489 | ||
495 | /* Fix up tso_factor for both original and new SKB. */ | 490 | /* Fix up tso_factor for both original and new SKB. */ |