]> git.baikalelectronics.ru Git - kernel.git/commit
tcp_bbr: introduce bbr_init_pacing_rate_from_rtt() helper
authorNeal Cardwell <ncardwell@google.com>
Fri, 14 Jul 2017 21:49:23 +0000 (17:49 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jul 2017 21:43:29 +0000 (14:43 -0700)
commitea380d6e5d3343bab1ef03dff541ceb38a091ed6
treec339cd662873800db6d40eb88e4b14a2f42a7781
parent6d2ee942bdfa3b9b722bd874ab6f2ad912bcc80a
tcp_bbr: introduce bbr_init_pacing_rate_from_rtt() helper

Introduce a helper to initialize the BBR pacing rate unconditionally,
based on the current cwnd and RTT estimate. 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