diff options
author | Neal Cardwell <ncardwell@google.com> | 2020-09-10 21:35:34 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-09-11 05:53:01 +0200 |
commit | 29a949325c6c90f1431db9af64592275c83d9b2a (patch) | |
tree | de25fc54a76f1a554ccc2357f6e4b30fb42089b3 /include | |
parent | tcp: Simplify EBPF TCP_CONGESTION to always init CC (diff) | |
download | linux-29a949325c6c90f1431db9af64592275c83d9b2a.tar.xz linux-29a949325c6c90f1431db9af64592275c83d9b2a.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/tcp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index e85d564446c6..f857146c17a5 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -1104,7 +1104,7 @@ void tcp_get_available_congestion_control(char *buf, size_t len); void tcp_get_allowed_congestion_control(char *buf, size_t len); int tcp_set_allowed_congestion_control(char *allowed); int tcp_set_congestion_control(struct sock *sk, const char *name, bool load, - bool reinit, bool cap_net_admin); + bool cap_net_admin); u32 tcp_slow_start(struct tcp_sock *tp, u32 acked); void tcp_cong_avoid_ai(struct tcp_sock *tp, u32 w, u32 acked); |