]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests/bpf: Add test for the use of new args in cong_control
authorMiao Xu <miaxu@meta.com>
Thu, 2 May 2024 04:23:18 +0000 (21:23 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 2 May 2024 23:32:04 +0000 (16:32 -0700)
commit96c3490d6423b7f24d356e24a61c24de69f3de77
tree8e45830a9f0b33c1d5b0f27b746b91ae350d88d6
parent0325cbd21e3c26eff88bc7da303ffb46b4f5d294
selftests/bpf: Add test for the use of new args in cong_control

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.

Signed-off-by: Miao Xu <miaxu@meta.com>
Link: https://lore.kernel.org/r/20240502042318.801932-4-miaxu@meta.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/bpf_tracing_net.h