diff options
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index bed379c7abcd..7374905b3701 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -387,7 +387,7 @@ void tcp_init_sock(struct sock *sk) | |||
387 | INIT_LIST_HEAD(&tp->tsq_node); | 387 | INIT_LIST_HEAD(&tp->tsq_node); |
388 | 388 | ||
389 | icsk->icsk_rto = TCP_TIMEOUT_INIT; | 389 | icsk->icsk_rto = TCP_TIMEOUT_INIT; |
390 | tp->mdev = TCP_TIMEOUT_INIT; | 390 | tp->mdev_us = jiffies_to_usecs(TCP_TIMEOUT_INIT); |
391 | 391 | ||
392 | /* So many TCP implementations out there (incorrectly) count the | 392 | /* So many TCP implementations out there (incorrectly) count the |
393 | * initial SYN frame in their delayed-ACK and congestion control | 393 | * initial SYN frame in their delayed-ACK and congestion control |
@@ -2339,7 +2339,7 @@ int tcp_disconnect(struct sock *sk, int flags) | |||
2339 | 2339 | ||
2340 | sk->sk_shutdown = 0; | 2340 | sk->sk_shutdown = 0; |
2341 | sock_reset_flag(sk, SOCK_DONE); | 2341 | sock_reset_flag(sk, SOCK_DONE); |
2342 | tp->srtt = 0; | 2342 | tp->srtt_us = 0; |
2343 | if ((tp->write_seq += tp->max_window + 2) == 0) | 2343 | if ((tp->write_seq += tp->max_window + 2) == 0) |
2344 | tp->write_seq = 1; | 2344 | tp->write_seq = 1; |
2345 | icsk->icsk_backoff = 0; | 2345 | icsk->icsk_backoff = 0; |
@@ -2783,8 +2783,8 @@ void tcp_get_info(const struct sock *sk, struct tcp_info *info) | |||
2783 | 2783 | ||
2784 | info->tcpi_pmtu = icsk->icsk_pmtu_cookie; | 2784 | info->tcpi_pmtu = icsk->icsk_pmtu_cookie; |
2785 | info->tcpi_rcv_ssthresh = tp->rcv_ssthresh; | 2785 | info->tcpi_rcv_ssthresh = tp->rcv_ssthresh; |
2786 | info->tcpi_rtt = jiffies_to_usecs(tp->srtt)>>3; | 2786 | info->tcpi_rtt = tp->srtt_us >> 3; |
2787 | info->tcpi_rttvar = jiffies_to_usecs(tp->mdev)>>2; | 2787 | info->tcpi_rttvar = tp->mdev_us >> 2; |
2788 | info->tcpi_snd_ssthresh = tp->snd_ssthresh; | 2788 | info->tcpi_snd_ssthresh = tp->snd_ssthresh; |
2789 | info->tcpi_snd_cwnd = tp->snd_cwnd; | 2789 | info->tcpi_snd_cwnd = tp->snd_cwnd; |
2790 | info->tcpi_advmss = tp->advmss; | 2790 | info->tcpi_advmss = tp->advmss; |