diff options
author | Eric Dumazet <edumazet@google.com> | 2014-09-05 18:33:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-05 20:49:33 -0400 |
commit | 7faee5c0d514162853a343d93e4a0b6bb8bfec21 (patch) | |
tree | ebaba03f755dfbe9d942fbe610ce3aecd1b0fc33 /net/ipv4/tcp_timer.c | |
parent | 04317dafd11dd7b0ec19b85f098414abae6ed5f7 (diff) |
tcp: remove TCP_SKB_CB(skb)->when
After commit 740b0f1841f6 ("tcp: switch rtt estimations to usec resolution"),
we no longer need to maintain timestamps in two different fields.
TCP_SKB_CB(skb)->when can be removed, as same information sits in skb_mstamp.stamp_jiffies
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_timer.c')
-rw-r--r-- | net/ipv4/tcp_timer.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c index df90cd1ce37f..a339e7ba05a4 100644 --- a/net/ipv4/tcp_timer.c +++ b/net/ipv4/tcp_timer.c | |||
@@ -135,10 +135,9 @@ static bool retransmits_timed_out(struct sock *sk, | |||
135 | if (!inet_csk(sk)->icsk_retransmits) | 135 | if (!inet_csk(sk)->icsk_retransmits) |
136 | return false; | 136 | return false; |
137 | 137 | ||
138 | if (unlikely(!tcp_sk(sk)->retrans_stamp)) | 138 | start_ts = tcp_sk(sk)->retrans_stamp; |
139 | start_ts = TCP_SKB_CB(tcp_write_queue_head(sk))->when; | 139 | if (unlikely(!start_ts)) |
140 | else | 140 | start_ts = tcp_skb_timestamp(tcp_write_queue_head(sk)); |
141 | start_ts = tcp_sk(sk)->retrans_stamp; | ||
142 | 141 | ||
143 | if (likely(timeout == 0)) { | 142 | if (likely(timeout == 0)) { |
144 | linear_backoff_thresh = ilog2(TCP_RTO_MAX/rto_base); | 143 | linear_backoff_thresh = ilog2(TCP_RTO_MAX/rto_base); |