Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66250
b: refs/heads/master
c: d738cd8
h: refs/heads/master
v: v3
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Oct 10, 2007
1 parent 4ce1843 commit e8377c0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 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: d961db358f41033a8fc7b62948bc7cff1b4bb1fe
refs/heads/master: d738cd8fca948e45d53120247cb7a5f5be3ca09e
2 changes: 2 additions & 0 deletions trunk/include/linux/tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ struct tcp_sock {

struct tcp_sack_block_wire recv_sack_cache[4];

u32 highest_sack; /* Start seq of globally highest revd SACK (valid only in slowpath) */

/* from STCP, retrans queue hinting */
struct sk_buff* lost_skb_hint;

Expand Down
8 changes: 7 additions & 1 deletion trunk/net/ipv4/tcp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -979,8 +979,10 @@ tcp_sacktag_write_queue(struct sock *sk, struct sk_buff *ack_skb, u32 prior_snd_
int i;
int first_sack_index;

if (!tp->sacked_out)
if (!tp->sacked_out) {
tp->fackets_out = 0;
tp->highest_sack = tp->snd_una;
}
prior_fackets = tp->fackets_out;

/* Check for D-SACK. */
Expand Down Expand Up @@ -1217,6 +1219,10 @@ tcp_sacktag_write_queue(struct sock *sk, struct sk_buff *ack_skb, u32 prior_snd_

if (fack_count > tp->fackets_out)
tp->fackets_out = fack_count;

if (after(TCP_SKB_CB(skb)->seq,
tp->highest_sack))
tp->highest_sack = TCP_SKB_CB(skb)->seq;
} else {
if (dup_sack && (sacked&TCPCB_RETRANS))
reord = min(fack_count, reord);
Expand Down

0 comments on commit e8377c0

Please sign in to comment.