Thread (14 messages) flat view 14 messages, 4 authors, 2025-02-28

Re: [PATCH bpf-next v1 3/3] selftests/bpf: Add edge case tests for sockmap

From: John Fastabend <john.fastabend@gmail.com>
Date: 2025-02-27 22:18:35
Also in: bpf, linux-kselftest, lkml

On 2025-02-26 21:22:42, Jiayuan Chen wrote:
Add edge case tests for sockmap.

Signed-off-by: Jiayuan Chen <jiayuan.chen@linux.dev>
---
Reviewed-by: John Fastabend <john.fastabend@gmail.com>
quoted hunk ↗ jump to hunk
 .../selftests/bpf/prog_tests/sockmap_basic.c  | 57> +
 void test_sockmap_basic(void)
 {
 	if (test__start_subtest("sockmap create_update_free"))
@@ -1108,4 +1163,6 @@ void test_sockmap_basic(void)
 		test_sockmap_skb_verdict_vsock_poll();
 	if (test__start_subtest("sockmap vsock unconnected"))
 		test_sockmap_vsock_unconnected();
+	if (test__start_subtest("sockmap with unix and close"))
+		test_sockmap_with_close_on_write(AF_UNIX, SOCK_STREAM);
Might also be worth running these with other types? No bug was
fixed there but still testing close while writing is useful
for testing RCU paths in TCP/UDP.

Fine as a follow up patch IMO.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help