tcp: make congestion control optionally skip slow start after idle
authorWei Wang <weiwan@google.com>
Fri, 5 May 2017 19:53:23 +0000 (12:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 May 2017 18:37:07 +0000 (14:37 -0400)
commit1b1fc3fddabfb8739ef2c8f04e05a9858b42c1f7
tree96e7fc35b0e4ab664d4e68a0ed7a68398402090c
parent82486aa6f1b9bc8145e6d0fa2bc0b44307f3b875
tcp: make congestion control optionally skip slow start after idle

Congestion control modules that want full control over congestion
control behavior do not want the cwnd modifications controlled by
the sysctl_tcp_slow_start_after_idle code path.
So skip those code paths for CC modules that use the cong_control()
API.
As an example, those cwnd effects are not desired for the BBR congestion
control algorithm.

Fixes: c0402760f565 ("tcp: new CC hook to set sending rate with rate_sample in any CA state")
Signed-off-by: Wei Wang <weiwan@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_output.c