tcp_bbr: introduce bbr_bw_to_pacing_rate() helper
authorNeal Cardwell <ncardwell@google.com>
Fri, 14 Jul 2017 21:49:22 +0000 (17:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2017 15:49:31 +0000 (08:49 -0700)
commitec789686d79b5d95c1623d2bbd6f0bb8657f6dcd
tree37093ad78780c33402ac211782fc049ddd6a37a0
parent73520d3814b6fd37483dc79e578906301122bbb3
tcp_bbr: introduce bbr_bw_to_pacing_rate() helper

[ Upstream commit f19fd62dafaf1ed6cf615dba655b82fa9df59074 ]

Introduce a helper to convert a BBR bandwidth and gain factor to a
pacing rate in bytes per second. This is a pure refactor, but is
needed for two following fixes.

Fixes: 0f8782ea1497 ("tcp_bbr: add BBR congestion control")
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Soheil Hassas Yeganeh <soheil@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