selftests/bpf: Sanitize the SEC and inline usages in the bpf-tcp-cc tests
authorMartin KaFai Lau <martin.lau@kernel.org>
Thu, 9 May 2024 17:50:20 +0000 (10:50 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 9 May 2024 18:13:11 +0000 (11:13 -0700)
commit7d3851a31832bf8dc776a78494b788518734ad0f
treeb76899f62b243ae92c557b88d1e193b7de5dbd27
parentcc5b18ce1714160be3e0e3b9440a6306dc87e5c4
selftests/bpf: Sanitize the SEC and inline usages in the bpf-tcp-cc tests

It is needed to remove the BPF_STRUCT_OPS usages from the tcp-cc tests
because it is defined in bpf_tcp_helpers.h which is going to be retired.
While at it, this patch consolidates all tcp-cc struct_ops programs to
use the SEC("struct_ops") + BPF_PROG().

It also removes the unnecessary __always_inline usages from the
tcp-cc tests.

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20240509175026.3423614-5-martin.lau@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
tools/testing/selftests/bpf/progs/bpf_cubic.c
tools/testing/selftests/bpf/progs/bpf_dctcp.c
tools/testing/selftests/bpf/progs/bpf_dctcp_release.c
tools/testing/selftests/bpf/progs/bpf_tcp_nogpl.c
tools/testing/selftests/bpf/progs/tcp_ca_incompl_cong_ops.c
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
tools/testing/selftests/bpf/progs/tcp_ca_unsupp_cong_op.c
tools/testing/selftests/bpf/progs/tcp_ca_update.c
tools/testing/selftests/bpf/progs/tcp_ca_write_sk_pacing.c