Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_storage.c9 #define TEST_NS "cgroup_storage_ns" macro
14 SYS(fail, "ip netns add %s", TEST_NS); in setup_network()
15 *token = open_netns(TEST_NS); in setup_network()
23 SYS_NOFAIL("ip netns del %s", TEST_NS); in setup_network()
31 SYS_NOFAIL("ip netns del %s", TEST_NS); in cleanup_network()
H A Dsock_iter_batch.c8 #define TEST_NS "sock_iter_batch_netns" macro
115 SYS_NOFAIL("ip netns del " TEST_NS); in test_sock_iter_batch()
116 SYS(done, "ip netns add %s", TEST_NS); in test_sock_iter_batch()
117 SYS(done, "ip -net %s link set dev lo up", TEST_NS); in test_sock_iter_batch()
119 nstoken = open_netns(TEST_NS); in test_sock_iter_batch()
134 SYS_NOFAIL("ip netns del " TEST_NS); in test_sock_iter_batch()
H A Dxdp_devmap_attach.c14 #define TEST_NS "devmap_attach_ns" macro
29 SYS(out_close, "ip netns add %s", TEST_NS); in test_xdp_with_devmap_helpers()
30 nstoken = open_netns(TEST_NS); in test_xdp_with_devmap_helpers()
95 SYS_NOFAIL("ip netns del %s", TEST_NS); in test_xdp_with_devmap_helpers()
164 SYS(out_close, "ip netns add %s", TEST_NS); in test_xdp_with_devmap_helpers_veth()
165 nstoken = open_netns(TEST_NS); in test_xdp_with_devmap_helpers_veth()
229 SYS_NOFAIL("ip netns del %s", TEST_NS); in test_xdp_with_devmap_helpers_veth()
H A Dcgroup_ancestor.c9 #define TEST_NS "cgroup_ancestor_ns" macro
51 SYS(fail, "ip netns add %s", TEST_NS); in setup_network()
52 t->ns = open_netns(TEST_NS); in setup_network()
80 SYS_NOFAIL("ip netns del %s", TEST_NS); in setup_network()
90 SYS_NOFAIL("ip netns del %s", TEST_NS); in cleanup_network()
H A Dsock_destroy.c9 #define TEST_NS "sock_destroy_netns" macro
196 SYS(cleanup, "ip netns add %s", TEST_NS); in test_sock_destroy()
197 SYS(cleanup, "ip -net %s link set dev lo up", TEST_NS); in test_sock_destroy()
199 nstoken = open_netns(TEST_NS); in test_sock_destroy()
217 SYS_NOFAIL("ip netns del " TEST_NS); in test_sock_destroy()
H A Dsock_addr.c30 #define TEST_NS "sock_addr" macro
2562 SYS_NOFAIL("ip netns delete %s", TEST_NS); in setup_test_env()
2563 SYS(fail, "ip netns add %s", TEST_NS); in setup_test_env()
2564 *tok = open_netns(TEST_NS); in setup_test_env()
2582 SYS_NOFAIL("ip netns delete %s", TEST_NS); in setup_test_env()
2590 SYS_NOFAIL("ip netns delete %s", TEST_NS); in cleanup_test_env()