]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
tcp: do not set rtt_min to 1
authorEric Dumazet <edumazet@google.com>
Thu, 11 Feb 2016 16:58:18 +0000 (08:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2016 21:07:13 +0000 (16:07 -0500)
commit372022830b06d9980c7e8b41fa0a4081cff883b0
treef3b5d5280ef7720ab66f8d9b015cf8fe7e0ef8a8
parent6c5d89a34a486ad782dfb5b6b3b8fb4976ae7619
tcp: do not set rtt_min to 1

There are some cases where rtt_us derives from deltas of jiffies,
instead of using usec timestamps.

Since we want to track minimal rtt, better to assume a delta of 0 jiffie
might be in fact be very close to 1 jiffie.

It is kind of sad jiffies_to_usecs(1) calls a function instead of simply
using a constant.

Fixes: f672258391b42 ("tcp: track min RTT using windowed min-filter")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c