tcp: Simplify EBPF TCP_CONGESTION to always init CC
authorNeal Cardwell <ncardwell@google.com>
Thu, 10 Sep 2020 19:35:33 +0000 (15:35 -0400)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 11 Sep 2020 03:53:01 +0000 (20:53 -0700)
commite7b10a4dd1b13c8fb8ee1686da7d01437c5da1d2
treeafdfa162e2a6ca08867624cd26a39e01a3dc5737
parent8919a9b31eb4fb4c0a93e5fb350a626924302aa6
tcp: Simplify EBPF TCP_CONGESTION to always init CC

Now that the previous patch ensures we don't initialize the congestion
control twice, when EBPF sets the congestion control algorithm at
connection establishment we can simplify the code by simply
initializing the congestion control module at that time.

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>
net/core/filter.c