mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
tcp: extract code to compute SYNACK RTT
In preparation for adding another spot where we compute the SYNACK RTT, extract this code so that it can be shared. Signed-off-by: Neal Cardwell <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
de46584675
commit
623df484a7
3 changed files with 11 additions and 6 deletions
|
|
@ -1733,9 +1733,7 @@ struct sock *tcp_v4_syn_recv_sock(struct sock *sk, struct sk_buff *skb,
|
|||
newtp->advmss = tcp_sk(sk)->rx_opt.user_mss;
|
||||
|
||||
tcp_initialize_rcv_mss(newsk);
|
||||
if (tcp_rsk(req)->snt_synack)
|
||||
tcp_valid_rtt_meas(newsk,
|
||||
tcp_time_stamp - tcp_rsk(req)->snt_synack);
|
||||
tcp_synack_rtt_meas(newsk, req);
|
||||
newtp->total_retrans = req->retrans;
|
||||
|
||||
#ifdef CONFIG_TCP_MD5SIG
|
||||
|
|
|
|||
Loading…
Reference in a new issue