diff options
author | Neal Cardwell <ncardwell@google.com> | 2016-09-19 23:39:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-21 00:22:59 -0400 |
commit | a4f1f9ac8153e22869b6408832b5a9bb9c762bf6 (patch) | |
tree | d1db0c9b204eeca86084b17e394c6174d05cf4d9 /net/ipv4 | |
parent | f78e73e27fdeab6f9317667f7e9676b59c1ec1fb (diff) | |
download | op-kernel-dev-a4f1f9ac8153e22869b6408832b5a9bb9c762bf6.zip op-kernel-dev-a4f1f9ac8153e22869b6408832b5a9bb9c762bf6.tar.gz |
lib/win_minmax: windowed min or max estimator
This commit introduces a generic library to estimate either the min or
max value of a time-varying variable over a recent time window. This
is code originally from Kathleen Nichols. The current form of the code
is from Van Jacobson.
A single struct minmax_sample will track the estimated windowed-max
value of the series if you call minmax_running_max() or the estimated
windowed-min value of the series if you call minmax_running_min().
Nearly equivalent code is already in place for minimum RTT estimation
in the TCP stack. This commit extracts that code and generalizes it to
handle both min and max. Moving the code here reduces the footprint
and complexity of the TCP code base and makes the filter generally
available for other parts of the codebase, including an upcoming TCP
congestion control module.
This library works well for time series where the measurements are
smoothly increasing or decreasing.
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 'net/ipv4')
0 files changed, 0 insertions, 0 deletions