]> www.infradead.org Git - users/dwmw2/linux.git/commit
Merge branch 'Retire test_sock.c'
authorMartin KaFai Lau <martin.lau@kernel.org>
Tue, 22 Oct 2024 20:06:41 +0000 (13:06 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Tue, 22 Oct 2024 20:41:43 +0000 (13:41 -0700)
commitefe7921927dc01cffdaff623ef51609e1be5058a
tree5cd134e758f92185c92217bbcb91e03bc678b94a
parentd39100d01ce1ba1bffe0447a0550f592aa6e1e9b
parenteea6c14c10ce208e5f6ab309fb1c141a39446a1b
Merge branch 'Retire test_sock.c'

Jordan Rife says:

====================
This patch series migrates test cases out of test_sock.c to
prog_tests-style tests. It moves all BPF_CGROUP_INET4_POST_BIND and
BPF_CGROUP_INET6_POST_BIND test cases into a new prog_test,
sock_post_bind.c, while reimplementing all LOAD_REJECT test cases as
verifier tests in progs/verifier_sock.c. Finally, it moves remaining
BPF_CGROUP_INET_SOCK_CREATE test coverage into prog_tests/sock_create.c
before retiring test_sock.c completely.

Changes
=======
v1->v2:
- Remove superfluous verbose bool from the top of sock_post_bind.c.
- Use ASSERT_OK_FD instead of ASSERT_GE to test cgroup_fd validity.
- Run sock_post_bind tests in their own namespace, "sock_post_bind".
====================

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>