Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/
H A Dtest_progs.c735 struct netns_obj { struct
757 struct netns_obj *netns_new(const char *nsname, bool open) in netns_new() argument
759 struct netns_obj *netns_obj = malloc(sizeof(*netns_obj)); in netns_new() local
763 if (!netns_obj) in netns_new()
765 memset(netns_obj, 0, sizeof(*netns_obj)); in netns_new()
767 netns_obj->nsname = strdup(nsname); in netns_new()
768 if (!netns_obj->nsname) in netns_new()
781 netns_obj->tmon = traffic_monitor_start(nsname, test_name, subtest_name); in netns_new()
782 if (!netns_obj->tmon) { in netns_new()
787 netns_obj->tmon = NULL; in netns_new()
[all …]
H A Dtest_progs.h501 struct netns_obj;
502 struct netns_obj *netns_new(const char *name, bool open);
503 void netns_free(struct netns_obj *netns);
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_skc_cls_ingress.c33 static struct netns_obj *prepare_netns(struct test_btf_skc_cls_ingress *skel) in prepare_netns()
38 struct netns_obj *ns = NULL; in prepare_netns()
252 struct netns_obj *ns; in test_btf_skc_cls_ingress()
H A Dmptcp.c193 struct netns_obj *netns = NULL; in test_base()
309 struct netns_obj *netns = NULL; in test_mptcpify()
401 struct netns_obj *netns; in test_subflow()
537 struct netns_obj *netns; in test_mptcp_sockmap()
H A Dxdp_context_test_run.c209 struct netns_obj *rx_ns = NULL, *tx_ns = NULL; in test_xdp_context_veth()
300 struct netns_obj *ns = NULL; in test_tuntap()
365 struct netns_obj *ns = NULL; in test_tuntap_mirred()
H A Dbpf_qdisc.c178 struct netns_obj *netns = NULL; in test_default_qdisc_attach_to_mq()
H A Dnet_timestamping.c152 struct netns_obj *ns; in test_tcp()
H A Dtc_redirect.c73 static struct netns_obj *netns_objs[3];
93 struct netns_obj **ns_obj = netns_objs; in netns_setup_namespaces()
115 struct netns_obj **ns_obj = netns_objs; in netns_setup_namespaces_nofail()
H A Dflow_dissector.c707 struct netns_obj *ns; in test_flow_dissector_skb_less_direct_attach()
755 struct netns_obj *ns; in test_flow_dissector_skb_less_indirect_attach()
H A Dxdp_do_redirect.c269 struct netns_obj *ns[NS_NB];
H A Dsock_post_bind.c404 struct netns_obj *ns; in test_sock_post_bind()
H A Dtest_bpf_smc.c21 static struct netns_obj *test_netns;
H A Dflow_dissector_classification.c728 struct netns_obj *ns;
H A Dselect_reuseport.c787 struct netns_obj *netns; in test_config()