Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dtc_redirect.c173 struct nstoken *nstoken = NULL; in netns_setup_links_and_routes() local
198 nstoken = open_netns(NS_SRC); in netns_setup_links_and_routes()
199 if (!ASSERT_OK_PTR(nstoken, "setns src")) in netns_setup_links_and_routes()
215 close_netns(nstoken); in netns_setup_links_and_routes()
218 nstoken = open_netns(NS_FWD); in netns_setup_links_and_routes()
219 if (!ASSERT_OK_PTR(nstoken, "setns fwd")) in netns_setup_links_and_routes()
236 close_netns(nstoken); in netns_setup_links_and_routes()
239 nstoken = open_netns(NS_DST); in netns_setup_links_and_routes()
240 if (!ASSERT_OK_PTR(nstoken, "setns dst")) in netns_setup_links_and_routes()
254 close_netns(nstoken); in netns_setup_links_and_routes()
[all …]
Dtest_tunnel.c250 struct nstoken *nstoken; in test_vxlan_tunnel() local
294 nstoken = open_netns("at_ns0"); in test_vxlan_tunnel()
295 if (!ASSERT_OK_PTR(nstoken, "setns src")) in test_vxlan_tunnel()
306 close_netns(nstoken); in test_vxlan_tunnel()
334 struct nstoken *nstoken; in test_ip6vxlan_tunnel() local
367 nstoken = open_netns("at_ns0"); in test_ip6vxlan_tunnel()
368 if (!ASSERT_OK_PTR(nstoken, "setns src")) in test_ip6vxlan_tunnel()
379 close_netns(nstoken); in test_ip6vxlan_tunnel()
Dxdp_do_redirect.c93 struct nstoken *nstoken = NULL; in serial_test_xdp_do_redirect() local
124 nstoken = open_netns("testns"); in serial_test_xdp_do_redirect()
125 if (!ASSERT_OK_PTR(nstoken, "setns")) in serial_test_xdp_do_redirect()
197 if (nstoken) in serial_test_xdp_do_redirect()
198 close_netns(nstoken); in serial_test_xdp_do_redirect()
Dempty_skb.c16 struct nstoken *tok = NULL; in serial_test_empty_skb()
Dxdp_synproxy.c67 struct nstoken *ns = NULL; in test_synproxy()
/linux-6.1.9/tools/testing/selftests/bpf/
Dnetwork_helpers.h60 struct nstoken;
67 struct nstoken *open_netns(const char *name);
68 void close_netns(struct nstoken *token);
Dnetwork_helpers.c389 struct nstoken { struct
436 struct nstoken *open_netns(const char *name) in open_netns()
441 struct nstoken *token; in open_netns()
443 token = calloc(1, sizeof(struct nstoken)); in open_netns()
466 void close_netns(struct nstoken *token) in close_netns()