Home
last modified time | relevance | path

Searched refs:root_netns_fd (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dxdp_bonding.c32 static int root_netns_fd = -1; variable
36 ASSERT_OK(setns(root_netns_fd, CLONE_NEWNET), "restore_root_netns"); in restore_root_netns()
530 root_netns_fd = open("/proc/self/ns/net", O_RDONLY); in test_xdp_bonding()
531 if (!ASSERT_GE(root_netns_fd, 0, "open /proc/self/ns/net")) in test_xdp_bonding()
572 if (root_netns_fd >= 0) in test_xdp_bonding()
573 close(root_netns_fd); in test_xdp_bonding()