diff options
author | Neal Cardwell <ncardwell@google.com> | 2016-09-20 05:39:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-21 06:22:59 +0200 |
commit | 6403389211e1f4d40ed963fe47a96fce1a3ba7a9 (patch) | |
tree | fedf5ec551ae7c7b99dd0c89aa8934724d523929 /include/net | |
parent | lib/win_minmax: windowed min or max estimator (diff) | |
download | linux-6403389211e1f4d40ed963fe47a96fce1a3ba7a9.tar.xz linux-6403389211e1f4d40ed963fe47a96fce1a3ba7a9.zip |
tcp: use windowed min filter library for TCP min_rtt estimation
Refactor the TCP min_rtt code to reuse the new win_minmax library in
lib/win_minmax.c to simplify the TCP code.
This is a pure refactor: the functionality is exactly the same. We
just moved the windowed min code to make TCP easier to read and
maintain, and to allow other parts of the kernel to use the windowed
min/max filter code.
Signed-off-by: Van Jacobson <vanj@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Nandita Dukkipati <nanditad@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/tcp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index fdfbedd61c67..2f1648af4d12 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -671,7 +671,7 @@ static inline bool tcp_ca_dst_locked(const struct dst_entry *dst) /* Minimum RTT in usec. ~0 means not available. */ static inline u32 tcp_min_rtt(const struct tcp_sock *tp) { - return tp->rtt_min[0].rtt; + return minmax_get(&tp->rtt_min); } /* Compute the actual receive window we are currently advertising. |