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

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_bonding.c33 static int root_netns_fd = -1; variable
37 ASSERT_OK(setns(root_netns_fd, CLONE_NEWNET), "restore_root_netns");
644 root_netns_fd = open("/proc/self/ns/net", O_RDONLY);
645 if (!ASSERT_GE(root_netns_fd, 0, "open /proc/self/ns/net"))
689 if (root_netns_fd >= 0)
690 close(root_netns_fd);

Completed in 129 milliseconds