]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Migrate tcpbpf_user.c to use BPF skeleton
authorAlexander Duyck <alexanderduyck@fb.com>
Tue, 3 Nov 2020 21:35:11 +0000 (13:35 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 4 Nov 2020 01:52:37 +0000 (17:52 -0800)
commit0a099d1429c709020277d24a460d11ff8356a080
tree971cc6d9dc042845ba9578206ed033f3c188f43f
parentd3813ea14b696053c076123239093822b527f0f7
selftests/bpf: Migrate tcpbpf_user.c to use BPF skeleton

Update tcpbpf_user.c to make use of the BPF skeleton. Doing this we can
simplify test_tcpbpf_user and reduce the overhead involved in setting up
the test.

In addition we can clean up the remaining bits such as the one remaining
CHECK_FAIL at the end of test_tcpbpf_user so that the function only makes
use of CHECK as needed.

Signed-off-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/160443931155.1086697.17869006617113525162.stgit@localhost.localdomain
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c