diff options
author | Eric Dumazet <edumazet@google.com> | 2017-04-25 13:15:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-26 14:44:38 -0400 |
commit | d2329f102d846214e449941289c7009e16be01a0 (patch) | |
tree | eeea1c39b9e5f0e003bd6715a2c97ea37a07a80c /net/ipv4/tcp_input.c | |
parent | 88d5c65098e5d15f2cea81f90bb6ecc167e1aa3b (diff) |
tcp: do not pass timestamp to tcp_rack_advance()
No longer needed, since tp->tcp_mstamp holds the information.
This is needed to remove sack_state.ack_time in a following patch.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 2d84483de2e1..5485204853d3 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -1214,8 +1214,7 @@ static u8 tcp_sacktag_one(struct sock *sk, | |||
1214 | return sacked; | 1214 | return sacked; |
1215 | 1215 | ||
1216 | if (!(sacked & TCPCB_SACKED_ACKED)) { | 1216 | if (!(sacked & TCPCB_SACKED_ACKED)) { |
1217 | tcp_rack_advance(tp, sacked, end_seq, | 1217 | tcp_rack_advance(tp, sacked, end_seq, xmit_time); |
1218 | xmit_time, &state->ack_time); | ||
1219 | 1218 | ||
1220 | if (sacked & TCPCB_SACKED_RETRANS) { | 1219 | if (sacked & TCPCB_SACKED_RETRANS) { |
1221 | /* If the segment is not tagged as lost, | 1220 | /* If the segment is not tagged as lost, |
@@ -3118,8 +3117,7 @@ static int tcp_clean_rtx_queue(struct sock *sk, int prior_fackets, | |||
3118 | tp->delivered += acked_pcount; | 3117 | tp->delivered += acked_pcount; |
3119 | if (!tcp_skb_spurious_retrans(tp, skb)) | 3118 | if (!tcp_skb_spurious_retrans(tp, skb)) |
3120 | tcp_rack_advance(tp, sacked, scb->end_seq, | 3119 | tcp_rack_advance(tp, sacked, scb->end_seq, |
3121 | &skb->skb_mstamp, | 3120 | &skb->skb_mstamp); |
3122 | &sack->ack_time); | ||
3123 | } | 3121 | } |
3124 | if (sacked & TCPCB_LOST) | 3122 | if (sacked & TCPCB_LOST) |
3125 | tp->lost_out -= acked_pcount; | 3123 | tp->lost_out -= acked_pcount; |