]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: make undo_cwnd mandatory for congestion modules
authorFlorian Westphal <fw@strlen.de>
Mon, 21 Nov 2016 13:18:38 +0000 (14:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Nov 2016 18:20:17 +0000 (13:20 -0500)
commit9e597c01ba632f86f4445b15bdaa16db4a41c56d
tree870e5c09c37890d286872c9ae22382d6bf336b37
parentff3693e29498ad3a4878a93a820cd0d830e5eb7f
tcp: make undo_cwnd mandatory for congestion modules

The undo_cwnd fallback in the stack doubles cwnd based on ssthresh,
which un-does reno halving behaviour.

It seems more appropriate to let congctl algorithms pair .ssthresh
and .undo_cwnd properly. Add a 'tcp_reno_undo_cwnd' function and wire it
up for all congestion algorithms that used to rely on the fallback.

Cc: Eric Dumazet <edumazet@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_cong.c
net/ipv4/tcp_dctcp.c
net/ipv4/tcp_hybla.c
net/ipv4/tcp_input.c
net/ipv4/tcp_lp.c
net/ipv4/tcp_vegas.c
net/ipv4/tcp_westwood.c