selftests/bpf: Check bpf_cubic_acked() is called via struct_ops
authorSong Liu <song@kernel.org>
Tue, 19 Sep 2023 06:02:58 +0000 (23:02 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 19 Sep 2023 09:59:28 +0000 (02:59 -0700)
commit48f5e7d3f7300ff679dc50bfb7a7451de6f29e4c
treecc9c6941fc983916828daec9468a9a3a691d73d8
parentcf094baa3e0f19f1f80ceaf205c80402b024386c
selftests/bpf: Check bpf_cubic_acked() is called via struct_ops

Test bpf_tcp_ca (in test_progs) checks multiple tcp_congestion_ops.
However, there isn't a test that verifies functions in the
tcp_congestion_ops is actually called. Add a check to verify that
bpf_cubic_acked is actually called during the test.

Suggested-by: Martin KaFai Lau <martin.lau@kernel.org>
Signed-off-by: Song Liu <song@kernel.org>
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/r/20230919060258.3237176-3-song@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
tools/testing/selftests/bpf/progs/bpf_cubic.c