]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests/bpf: Test loading bpf-tcp-cc prog calling the kernel tcp-cc kfuncs
authorMartin KaFai Lau <martin.lau@kernel.org>
Fri, 22 Mar 2024 19:14:33 +0000 (12:14 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 29 Mar 2024 01:31:40 +0000 (18:31 -0700)
commit5da7fb04902b0f0fcd13bc5ef216e232fa971efa
tree6e4de114a369c8e76c53496249cf16f07682d4db
parent42e4ebd390be8e0090d64d58433b6cba45d919e9
selftests/bpf: Test loading bpf-tcp-cc prog calling the kernel tcp-cc kfuncs

This patch adds a test to ensure all static tcp-cc kfuncs is visible to
the struct_ops bpf programs. It is checked by successfully loading
the struct_ops programs calling these tcp-cc kfuncs.

This patch needs to enable the CONFIG_TCP_CONG_DCTCP and
the CONFIG_TCP_CONG_BBR.

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20240322191433.4133280-2-martin.lau@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/config
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c [new file with mode: 0644]