diff options
author | Neal Cardwell <ncardwell@google.com> | 2012-01-18 17:47:58 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-20 14:17:26 -0500 |
commit | fc16dcd8c2e1e9bc91ed765957e1f2bbf334253e (patch) | |
tree | c7174ce035611b3088e2da38003655cf26e8ce0b /net/ipv4/tcp_cubic.c | |
parent | b67f231ded332461dd31123c4f659c4681223fb1 (diff) | |
download | linux-fc16dcd8c2e1e9bc91ed765957e1f2bbf334253e.tar.bz2 |
tcp: fix undo after RTO for BIC
This patch fixes BIC so that cwnd reductions made during RTOs can be
undone (just as they already can be undone when using the default/Reno
behavior).
When undoing cwnd reductions, BIC-derived congestion control modules
were restoring the cwnd from last_max_cwnd. There were two problems
with using last_max_cwnd to restore a cwnd during undo:
(a) last_max_cwnd was set to 0 on state transitions into TCP_CA_Loss
(by calling the module's reset() functions), so cwnd reductions from
RTOs could not be undone.
(b) when fast_covergence is enabled (which it is by default)
last_max_cwnd does not actually hold the value of snd_cwnd before the
loss; instead, it holds a scaled-down version of snd_cwnd.
This patch makes the following changes:
(1) upon undo, revert snd_cwnd to ca->loss_cwnd, which is already, as
the existing comment notes, the "congestion window at last loss"
(2) stop forgetting ca->loss_cwnd on TCP_CA_Loss events
(3) use ca->last_max_cwnd to check if we're in slow start
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_cubic.c')
0 files changed, 0 insertions, 0 deletions