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)
commit79135b89b8af304456bd67916b80116ddf03d7b6
treec339cd662873800db6d40eb88e4b14a2f42a7781
parentf19fd62dafaf1ed6cf615dba655b82fa9df59074
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: 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>
net/ipv4/tcp_bbr.c