tcp_bbr: centralize code to set gains
authorNeal Cardwell <ncardwell@google.com>
Wed, 17 Oct 2018 00:16:45 +0000 (20:16 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 05:22:53 +0000 (22:22 -0700)
commitcf33e25c0dcfed4ef1b1735d2bf966d56936097b
tree1a9d6fa2975b79b7647e5ddf4f0040cde3781286
parenta87c83d5ee25cf7208279819642ae7bd218e3782
tcp_bbr: centralize code to set gains

Centralize the code that sets gains used for computing cwnd and pacing
rate. This simplifies the code and makes it easier to change the state
machine or (in the future) dynamically change the gain values and
ensure that the correct gain values are always used.

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: Priyaranjan Jha <priyarjha@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_bbr.c