]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jul 2017 21:43:29 +0000 (14:43 -0700)
commit6d2ee942bdfa3b9b722bd874ab6f2ad912bcc80a
tree5d1041c0f77d2893daed029c0a12566687393dcf
parent426f45436c9aa7be7bb81518f59a89745f170808
tcp_bbr: introduce bbr_bw_to_pacing_rate() helper

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: 9f3d2d908ae7 ("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>
net/ipv4/tcp_bbr.c