]> 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)
commit29a949325c6c90f1431db9af64592275c83d9b2a
treede25fc54a76f1a554ccc2357f6e4b30fb42089b3
parente7b10a4dd1b13c8fb8ee1686da7d01437c5da1d2
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