tcp: refactor setting the initial congestion window
authorYuchung Cheng <ycheng@google.com>
Mon, 29 Apr 2019 22:46:20 +0000 (15:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2019 15:47:54 +0000 (11:47 -0400)
commit98fa6271cfcb1de873b3fe0caf48d9daa1bcc0ac
tree0d8c0ce941e0e6441fb61631d1680b29b0c9eaf7
parent6b94b1c88b660a786fdb1c22d8a0d3529fe40f8c
tcp: refactor setting the initial congestion window

Relocate the congestion window initialization from tcp_init_metrics()
to tcp_init_transfer() to improve code readability.

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c
net/ipv4/tcp_input.c
net/ipv4/tcp_metrics.c