tcp: add a sysctl to config the tcp_default_init_rwnd
authorJP Abgrall <jpa@google.com>
Sat, 8 Feb 2014 02:40:10 +0000 (18:40 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:51:43 +0000 (13:51 -0800)
commit72fc8653dc090a65c330ffd7bf3e7dda1271ffe0
tree2222b8229ed45dd5684bd560dc1f98ed2cf22704
parent7c121720fa14889d59e933aad0a8b9ce948a39ae
tcp: add a sysctl to config the tcp_default_init_rwnd

The default initial rwnd is hardcoded to 10.

Now we allow it to be controlled via
  /proc/sys/net/ipv4/tcp_default_init_rwnd
which limits the values from 3 to 100

This is somewhat needed because ipv6 routes are
autoconfigured by the kernel.

See "An Argument for Increasing TCP's Initial Congestion Window"
in https://developers.google.com/speed/articles/tcp_initcwnd_paper.pdf

Change-Id: I386b2a9d62de0ebe05c1ebe1b4bd91b314af5c54
Signed-off-by: JP Abgrall <jpa@google.com>
Conflicts:
net/ipv4/sysctl_net_ipv4.c
net/ipv4/tcp_input.c
include/net/tcp.h
net/ipv4/sysctl_net_ipv4.c
net/ipv4/tcp_input.c
net/ipv4/tcp_output.c