Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78128
b: refs/heads/master
c: b7d4815
h: refs/heads/master
v: v3
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Jan 28, 2008
1 parent 8ea7a42 commit c1b7d9a
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 9f58f3b721f52a4d3f497ea57f830ccd307f1d76
refs/heads/master: b7d4815f35ab1d0f1eef2521a94a7d4c789290a2
5 changes: 2 additions & 3 deletions trunk/net/ipv4/tcp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,6 @@ tcp_sacktag_write_queue(struct sock *sk, struct sk_buff *ack_skb, u32 prior_snd_
struct sk_buff *cached_skb;
int num_sacks = (ptr[1] - TCPOLEN_SACK_BASE)>>3;
int reord = tp->packets_out;
int prior_fackets;
int flag = 0;
int found_dup_sack = 0;
int cached_fack_count;
Expand All @@ -1264,7 +1263,6 @@ tcp_sacktag_write_queue(struct sock *sk, struct sk_buff *ack_skb, u32 prior_snd_
tp->fackets_out = 0;
tp->highest_sack = tcp_write_queue_head(sk);
}
prior_fackets = tp->fackets_out;

found_dup_sack = tcp_check_dsack(tp, ack_skb, sp,
num_sacks, prior_snd_una);
Expand Down Expand Up @@ -1457,7 +1455,8 @@ tcp_sacktag_write_queue(struct sock *sk, struct sk_buff *ack_skb, u32 prior_snd_
/* New sack for not retransmitted frame,
* which was in hole. It is reordering.
*/
if (fack_count < prior_fackets)
if (before(TCP_SKB_CB(skb)->seq,
tcp_highest_sack_seq(tp)))
reord = min(fack_count, reord);

/* SACK enhanced F-RTO (RFC4138; Appendix B) */
Expand Down

0 comments on commit c1b7d9a

Please sign in to comment.