]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Support more socket types in create_pair()
authorMichal Luczaj <mhal@rbox.co>
Wed, 31 Jul 2024 10:01:26 +0000 (12:01 +0200)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 19 Aug 2024 23:43:31 +0000 (16:43 -0700)
commit190de5449973056f416c855b11fdfee2fc18f550
treee537695d3ca738c46f7fe0d9a44b237e737ffa1a
parent92ec8b9367ab328cdd3d4409464137bc9775a2e5
selftests/bpf: Support more socket types in create_pair()

Extend the function to allow creating socket pairs of SOCK_STREAM,
SOCK_DGRAM and SOCK_SEQPACKET.

Adapt direct callers and leave further cleanups for the following patch.

Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Tested-by: Jakub Sitnicki <jakub@cloudflare.com>
Suggested-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Michal Luczaj <mhal@rbox.co>
Link: https://lore.kernel.org/r/20240731-selftest-sockmap-fixes-v2-1-08a0c73abed2@rbox.co
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
tools/testing/selftests/bpf/prog_tests/sockmap_helpers.h