]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tcp_bbr: refactor bbr_target_cwnd() for general inflight provisioning
authorPriyaranjan Jha <priyarjha@google.com>
Wed, 23 Jan 2019 20:04:53 +0000 (12:04 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Sep 2020 16:01:32 +0000 (18:01 +0200)
commita56eb38acc700684f365740993ce3ddedcbb9152
tree222ba5cb8dbc1cd04b13f5f49ec3e222325b35f8
parent1aa7a9e5eebc5c40f0a5ea4e4cb8e8bd0267aea1
tcp_bbr: refactor bbr_target_cwnd() for general inflight provisioning

commit 232aa8ec3ed979d4716891540c03a806ecab0c37 upstream.

Because bbr_target_cwnd() is really a general-purpose BBR helper for
computing some volume of inflight data as a function of the estimated
BDP, refactor it into following helper functions:
- bbr_bdp()
- bbr_quantization_budget()
- bbr_inflight()

Signed-off-by: Priyaranjan Jha <priyarjha@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_bbr.c