Merge branch 'Align BPF TCP CCs implementing cong_control() with non-BPF CCs'
authorAlexei Starovoitov <ast@kernel.org>
Thu, 23 Jun 2022 16:49:58 +0000 (09:49 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 23 Jun 2022 16:50:06 +0000 (09:50 -0700)
commitbb7a4257892717caf82fe6da45b259b35f73445c
tree2f2467f86f8349cf645ce153714272a6770c3f7b
parent9676feccacdb0571791c88b23e3b7ac4e7c9c457
parentf14a3f644a1c5a2e2dbe6073f51793119a12e6ce
Merge branch 'Align BPF TCP CCs implementing cong_control() with non-BPF CCs'

Jörn-Thorben Hinz says:

====================

This series corrects some inconveniences for a BPF TCP CC that
implements and uses tcp_congestion_ops.cong_control(). Until now, such a
CC did not have all necessary write access to struct sock and
unnecessarily needed to implement cong_avoid().

v4:
 - Remove braces around single statements after if
 - Don’t check pointer passed to bpf_link__destroy()
v3:
 - Add a selftest writing sk_pacing_*
 - Add a selftest with incomplete tcp_congestion_ops
 - Add a selftest with unsupported get_info()
 - Remove an unused variable
 - Reword a comment about reg() in bpf_struct_ops_map_update_elem()
v2:
 - Drop redundant check for required functions and just rely on
   tcp_register_congestion_control() (Martin KaFai Lau)
====================

Reviewed-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>