Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66857
b: refs/heads/master
c: dc86967
h: refs/heads/master
i:
  66855: c74a8d0
v: v3
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Oct 10, 2007
1 parent 8cae231 commit 44c2e92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 8336793baf962163c9fab5a3f39614295fdbab27
refs/heads/master: dc86967b54aaf64fb053cce83c05a4476d48583b
7 changes: 4 additions & 3 deletions trunk/net/ipv4/tcp_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ static void tcp_set_skb_tso_segs(struct sock *sk, struct sk_buff *skb, unsigned
static void tcp_adjust_fackets_out(struct tcp_sock *tp, struct sk_buff *skb,
int decr)
{
if (!tp->sacked_out)
if (!tp->sacked_out || tcp_is_reno(tp))
return;

if (!before(tp->highest_sack, TCP_SKB_CB(skb)->seq))
Expand Down Expand Up @@ -712,7 +712,8 @@ int tcp_fragment(struct sock *sk, struct sk_buff *skb, u32 len, unsigned int mss
TCP_SKB_CB(buff)->end_seq = TCP_SKB_CB(skb)->end_seq;
TCP_SKB_CB(skb)->end_seq = TCP_SKB_CB(buff)->seq;

if (tp->sacked_out && (TCP_SKB_CB(skb)->seq == tp->highest_sack))
if (tcp_is_sack(tp) && tp->sacked_out &&
(TCP_SKB_CB(skb)->seq == tp->highest_sack))
tp->highest_sack = TCP_SKB_CB(buff)->seq;

/* PSH and FIN should only be set in the second packet. */
Expand Down Expand Up @@ -1718,7 +1719,7 @@ static void tcp_retrans_try_collapse(struct sock *sk, struct sk_buff *skb, int m
BUG_ON(tcp_skb_pcount(skb) != 1 ||
tcp_skb_pcount(next_skb) != 1);

if (WARN_ON(tp->sacked_out &&
if (WARN_ON(tcp_is_sack(tp) && tp->sacked_out &&
(TCP_SKB_CB(next_skb)->seq == tp->highest_sack)))
return;

Expand Down

0 comments on commit 44c2e92

Please sign in to comment.