On 5/1/24 9:23 PM, Miao Xu wrote:
This patch adds a selftest to show the usage of the new arguments in cong_control. For simplicity's sake, the testing example reuses cubic's kernel functions. --- Changes in v3: * Renamed the selftest file and the bpf struct_ops' name. * Minor changes such as removing unused comments. Changes in v2: * Added highlights to explain major differences between the bpf program and tcp_cubic.c. * bpf_tcp_helpers.h should not be further extended, so remove the dependency on this file. Use vmlinux.h instead. * Minor changes such as indentation. Signed-off-by: Miao Xu <miaxu@xxxxxxxx> --- .../selftests/bpf/progs/bpf_cc_cubic.c | 206 ++++++++++++++++++
I just noticed that the bpf_cc_cubic is not run by the test_progs. I have added a test to prog_tests/bpf_tcp_ca.c to do that.
I also fixed up your SOB. Applied. Thanks.
.../selftests/bpf/progs/bpf_tracing_net.h | 10 + 2 files changed, 216 insertions(+) create mode 100644 tools/testing/selftests/bpf/progs/bpf_cc_cubic.c