aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/phy/Makefile
diff options
context:
space:
mode:
authorGravatar Kuniyuki Iwashima <kuniyu@amazon.com> 2024-03-25 13:24:25 -0700
committerGravatar Jakub Kicinski <kuba@kernel.org> 2024-03-29 08:28:46 -0700
commit2aa0cff26ed53bc8d4855292b501759435ffdd38 (patch)
tree0c59686980a7ef30db7510b22fc5245b052b35ae /drivers/net/phy/Makefile
parentaf_unix: Replace garbage collection algorithm. (diff)
downloadlinux-2aa0cff26ed53bc8d4855292b501759435ffdd38.tar.gz
linux-2aa0cff26ed53bc8d4855292b501759435ffdd38.tar.bz2
linux-2aa0cff26ed53bc8d4855292b501759435ffdd38.zip
selftest: af_unix: Test GC for SCM_RIGHTS.
This patch adds test cases to verify the new GC. We run each test for the following cases: * SOCK_DGRAM * SOCK_STREAM without embryo socket * SOCK_STREAM without embryo socket + MSG_OOB * SOCK_STREAM with embryo sockets * SOCK_STREAM with embryo sockets + MSG_OOB Before and after running each test case, we ensure that there is no AF_UNIX socket left in the netns by reading /proc/net/protocols. We cannot use /proc/net/unix and UNIX_DIAG because the embryo socket does not show up there. Each test creates multiple sockets in an array. We pass sockets in the even index using the peer sockets in the odd index. So, send_fd(0, 1) actually sends fd[0] to fd[2] via fd[0 + 1]. Test 1 : A <-> A Test 2 : A <-> B Test 3 : A -> B -> C <- D ^.___|___.' ^ `---------' Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> Acked-by: Paolo Abeni <pabeni@redhat.com> Link: https://lore.kernel.org/r/20240325202425.60930-16-kuniyu@amazon.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/phy/Makefile')
0 files changed, 0 insertions, 0 deletions