Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66251
b: refs/heads/master
c: d8f4f22
h: refs/heads/master
i:
  66249: 4ce1843
  66247: 456be03
v: v3
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Oct 10, 2007
1 parent e8377c0 commit d5e5f29
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 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: d738cd8fca948e45d53120247cb7a5f5be3ca09e
refs/heads/master: d8f4f2235abc7b30cf447ca3e22ac28326b12f28
31 changes: 16 additions & 15 deletions trunk/net/ipv4/tcp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -1765,6 +1765,20 @@ static inline void tcp_reset_reno_sack(struct tcp_sock *tp)
tp->left_out = tp->lost_out;
}

/* RFC: This is from the original, I doubt that this is necessary at all:
* clear xmit_retrans hint if seq of this skb is beyond hint. How could we
* retransmitted past LOST markings in the first place? I'm not fully sure
* about undo and end of connection cases, which can cause R without L?
*/
static void tcp_verify_retransmit_hint(struct tcp_sock *tp,
struct sk_buff *skb)
{
if ((tp->retransmit_skb_hint != NULL) &&
before(TCP_SKB_CB(skb)->seq,
TCP_SKB_CB(tp->retransmit_skb_hint)->seq))
tp->retransmit_skb_hint = skb;
}

/* Mark head of queue up as lost. */
static void tcp_mark_head_lost(struct sock *sk,
int packets, u32 high_seq)
Expand Down Expand Up @@ -1795,14 +1809,7 @@ static void tcp_mark_head_lost(struct sock *sk,
if (!(TCP_SKB_CB(skb)->sacked&TCPCB_TAGBITS)) {
TCP_SKB_CB(skb)->sacked |= TCPCB_LOST;
tp->lost_out += tcp_skb_pcount(skb);

/* clear xmit_retransmit_queue hints
* if this is beyond hint */
if (tp->retransmit_skb_hint != NULL &&
before(TCP_SKB_CB(skb)->seq,
TCP_SKB_CB(tp->retransmit_skb_hint)->seq))
tp->retransmit_skb_hint = NULL;

tcp_verify_retransmit_hint(tp, skb);
}
}
tcp_sync_left_out(tp);
Expand Down Expand Up @@ -1843,13 +1850,7 @@ static void tcp_update_scoreboard(struct sock *sk)
if (!(TCP_SKB_CB(skb)->sacked&TCPCB_TAGBITS)) {
TCP_SKB_CB(skb)->sacked |= TCPCB_LOST;
tp->lost_out += tcp_skb_pcount(skb);

/* clear xmit_retrans hint */
if (tp->retransmit_skb_hint &&
before(TCP_SKB_CB(skb)->seq,
TCP_SKB_CB(tp->retransmit_skb_hint)->seq))

tp->retransmit_skb_hint = NULL;
tcp_verify_retransmit_hint(tp, skb);
}
}

Expand Down

0 comments on commit d5e5f29

Please sign in to comment.