diff options
author | Neal Cardwell <ncardwell@google.com> | 2017-12-07 20:43:30 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-08 21:27:43 +0300 |
commit | c589e69b508d29ed8e644dfecda453f71c02ec27 (patch) | |
tree | f20278d61d285ffb8e5ea44454b8c9a7aa26d0c8 /ipc | |
parent | d4a7a8893d4cdbc89d79ac4aa704bf8d4b67b368 (diff) | |
download | linux-c589e69b508d29ed8e644dfecda453f71c02ec27.tar.xz |
tcp_bbr: record "full bw reached" decision in new full_bw_reached bit
This commit records the "full bw reached" decision in a new
full_bw_reached bit. This is a pure refactor that does not change the
current behavior, but enables subsequent fixes and improvements.
In particular, this enables simple and clean fixes because the full_bw
and full_bw_cnt can be unconditionally zeroed without worrying about
forgetting that we estimated we filled the pipe in Startup. And it
enables future improvements because multiple code paths can be used
for estimating that we filled the pipe in Startup; any new code paths
only need to set this bit when they think the pipe is full.
Note that this fix intentionally reduces the width of the full_bw_cnt
counter, since we have never used the most significant bit.
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Reviewed-by: Yuchung Cheng <ycheng@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions