diff options
author | Eric Dumazet <edumazet@google.com> | 2017-05-16 17:00:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-17 16:06:01 -0400 |
commit | c2203cf75ed7dfab8dfc7ac915a726880ee7512f (patch) | |
tree | 502b28a4374307fe23a75adc34e167fdf7e3cba3 /net/ipv4/tcp_metrics.c | |
parent | d635fbe27ebee0f4b845abe5e9620c9400785a5c (diff) |
tcp: use tcp_jiffies32 to feed tp->snd_cwnd_stamp
Use tcp_jiffies32 instead of tcp_time_stamp to feed
tp->snd_cwnd_stamp.
tcp_time_stamp will soon be a litle bit more expensive
than simply reading 'jiffies'.
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>
Diffstat (limited to 'net/ipv4/tcp_metrics.c')
-rw-r--r-- | net/ipv4/tcp_metrics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_metrics.c b/net/ipv4/tcp_metrics.c index 653bbd67e3a3..102b2c90bb80 100644 --- a/net/ipv4/tcp_metrics.c +++ b/net/ipv4/tcp_metrics.c | |||
@@ -524,7 +524,7 @@ reset: | |||
524 | tp->snd_cwnd = 1; | 524 | tp->snd_cwnd = 1; |
525 | else | 525 | else |
526 | tp->snd_cwnd = tcp_init_cwnd(tp, dst); | 526 | tp->snd_cwnd = tcp_init_cwnd(tp, dst); |
527 | tp->snd_cwnd_stamp = tcp_time_stamp; | 527 | tp->snd_cwnd_stamp = tcp_jiffies32; |
528 | } | 528 | } |
529 | 529 | ||
530 | bool tcp_peer_is_proven(struct request_sock *req, struct dst_entry *dst) | 530 | bool tcp_peer_is_proven(struct request_sock *req, struct dst_entry *dst) |