summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorBobby Eshleman <bobbyeshleman@meta.com>2026-01-22 01:11:48 +0300
committerPaolo Abeni <pabeni@redhat.com>2026-01-27 12:45:38 +0300
commit7418f3bb3aa289fbf52f93b551e79ba647371f51 (patch)
tree91956d7843fbc5a68a64860801fe4f46038cd100 /include/linux
parent4e870ac81df7e9628bdc08ff6f957a42e80582ee (diff)
downloadlinux-7418f3bb3aa289fbf52f93b551e79ba647371f51.tar.xz
selftests/vsock: use ss to wait for listeners instead of /proc/net
Replace /proc/net parsing with ss(8) for detecting listening sockets in wait_for_listener() functions and add support for TCP, VSOCK, and Unix socket protocols. The previous implementation parsed /proc/net/tcp using awk to detect listening sockets, but this approach could not support vsock because vsock does not export socket information to /proc/net/. Instead, use ss so that we can detect listeners on tcp, vsock, and unix. The protocol parameter is now required for all wait_for_listener family functions (wait_for_listener, vm_wait_for_listener, host_wait_for_listener) to explicitly specify which socket type to wait for. ss is added to the dependency check in check_deps(). Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Bobby Eshleman <bobbyeshleman@meta.com> Link: https://patch.msgid.link/20260121-vsock-vmtest-v16-8-2859a7512097@meta.com Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions