]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: simplify tcp_set_congestion_control(): Always reinitialize
authorNeal Cardwell <ncardwell@google.com>
Thu, 10 Sep 2020 19:35:34 +0000 (15:35 -0400)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 11 Sep 2020 03:53:01 +0000 (20:53 -0700)
commitc2ce85a0a73b2a03f290b2de6bbfca152c35f567
treede25fc54a76f1a554ccc2357f6e4b30fb42089b3
parent1a87ac15c89c020a8850bfc0ba1c363312103c9f
tcp: simplify tcp_set_congestion_control(): Always reinitialize

Now that the previous patches ensure that all call sites for
tcp_set_congestion_control() want to initialize congestion control, we
can simplify tcp_set_congestion_control() by removing the reinit
argument and the code to support it.

Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yuchung Cheng <ycheng@google.com>
Acked-by: Kevin Yang <yyd@google.com>
Cc: Lawrence Brakmo <brakmo@fb.com>
include/net/tcp.h
net/core/filter.c
net/ipv4/tcp.c
net/ipv4/tcp_cong.c