Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135213
b: refs/heads/master
c: 5861f8e
h: refs/heads/master
i:
  135211: c016b25
v: v3
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Mar 16, 2009
1 parent 07ccf8c commit d8ee521
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 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: 7cd0a63872ac6ef97265f07adc367ca4f984468e
refs/heads/master: 5861f8e58dd84fc34b691c2e8d4824dea68c360e
7 changes: 2 additions & 5 deletions trunk/net/ipv4/tcp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -4248,8 +4248,7 @@ static void tcp_sack_remove(struct tcp_sock *tp)
this_sack++;
sp++;
}
if (num_sacks != tp->rx_opt.num_sacks)
tp->rx_opt.num_sacks = num_sacks;
tp->rx_opt.num_sacks = num_sacks;
}

/* This one checks to see if we can put data from the
Expand Down Expand Up @@ -4325,8 +4324,7 @@ static void tcp_data_queue(struct sock *sk, struct sk_buff *skb)

TCP_ECN_accept_cwr(tp, skb);

if (tp->rx_opt.dsack)
tp->rx_opt.dsack = 0;
tp->rx_opt.dsack = 0;

/* Queue data for delivery to the user.
* Packets in sequence go to the receive queue.
Expand Down Expand Up @@ -4445,7 +4443,6 @@ static void tcp_data_queue(struct sock *sk, struct sk_buff *skb)
/* Initial out of order segment, build 1 SACK. */
if (tcp_is_sack(tp)) {
tp->rx_opt.num_sacks = 1;
tp->rx_opt.dsack = 0;
tp->selective_acks[0].start_seq = TCP_SKB_CB(skb)->seq;
tp->selective_acks[0].end_seq =
TCP_SKB_CB(skb)->end_seq;
Expand Down
3 changes: 1 addition & 2 deletions trunk/net/ipv4/tcp_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,7 @@ static void tcp_options_write(__be32 *ptr, struct tcp_sock *tp,
*ptr++ = htonl(sp[this_sack].end_seq);
}

if (tp->rx_opt.dsack)
tp->rx_opt.dsack = 0;
tp->rx_opt.dsack = 0;
}
}

Expand Down

0 comments on commit d8ee521

Please sign in to comment.