tcp: use tp->tcp_mstamp in output path
Idea is to later convert tp->tcp_mstamp to a full u64 counter using usec resolution, so that we can later have fine grained TCP TS clock (RFC 7323), regardless of HZ value. We try to refresh tp->tcp_mstamp only when necessary. Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Soheil Hassas Yeganeh <soheil@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
9d4f97f97b
commit
385e20706f
@@ -166,7 +166,6 @@ void tcp_rack_reo_timeout(struct sock *sk)
|
||||
u32 timeout, prior_inflight;
|
||||
|
||||
prior_inflight = tcp_packets_in_flight(tp);
|
||||
skb_mstamp_get(&tp->tcp_mstamp);
|
||||
tcp_rack_detect_loss(sk, &timeout);
|
||||
if (prior_inflight != tcp_packets_in_flight(tp)) {
|
||||
if (inet_csk(sk)->icsk_ca_state != TCP_CA_Recovery) {
|
||||
|
Reference in New Issue
Block a user