diff options
author | Neal Cardwell <ncardwell@google.com> | 2020-09-10 22:35:34 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-09-11 06:53:01 +0300 |
commit | 29a949325c6c90f1431db9af64592275c83d9b2a (patch) | |
tree | de25fc54a76f1a554ccc2357f6e4b30fb42089b3 /net/core/filter.c | |
parent | e7b10a4dd1b13c8fb8ee1686da7d01437c5da1d2 (diff) | |
download | linux-29a949325c6c90f1431db9af64592275c83d9b2a.tar.xz |
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 'net/core/filter.c')
-rw-r--r-- | net/core/filter.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/filter.c b/net/core/filter.c index 067f6759a68f..e89d6d7da03c 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -4451,8 +4451,7 @@ static int _bpf_setsockopt(struct sock *sk, int level, int optname, strncpy(name, optval, min_t(long, optlen, TCP_CA_NAME_MAX-1)); name[TCP_CA_NAME_MAX-1] = 0; - ret = tcp_set_congestion_control(sk, name, false, - true, true); + ret = tcp_set_congestion_control(sk, name, false, true); } else { struct inet_connection_sock *icsk = inet_csk(sk); struct tcp_sock *tp = tcp_sk(sk); |