Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/
H A Dtest_progs.c774 struct netns_obj { struct
796 struct netns_obj *netns_new(const char *nsname, bool open) in netns_new() argument
798 struct netns_obj *netns_obj = malloc(sizeof(*netns_obj)); in netns_new() local
802 if (!netns_obj) in netns_new()
804 memset(netns_obj, 0, sizeof(*netns_obj)); in netns_new()
806 netns_obj->nsname = strdup(nsname); in netns_new()
807 if (!netns_obj->nsname) in netns_new()
820 netns_obj->tmon = traffic_monitor_start(nsname, test_name, subtest_name); in netns_new()
821 if (!netns_obj->tmon) { in netns_new()
826 netns_obj->tmon = NULL; in netns_new()
[all …]
H A Dtest_progs.h504 struct netns_obj;
505 struct netns_obj *netns_new(const char *name, bool open);
506 void netns_free(struct netns_obj *netns);
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dmptcp.c193 struct netns_obj *netns = NULL; in test_base()
309 struct netns_obj *netns = NULL; in test_mptcpify()
408 struct netns_obj *netns; in test_subflow()
544 struct netns_obj *netns; in test_mptcp_sockmap()
H A Dxdp_context_test_run.c250 struct netns_obj *rx_ns = NULL, *tx_ns = NULL; in test_xdp_context_veth()
341 struct netns_obj *ns = NULL; in test_tuntap()
406 struct netns_obj *ns = NULL; in test_tuntap_mirred()
592 struct netns_obj *ns = NULL; in test_lwt_encap()
H A Dbpf_qdisc.c183 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 Dxdp_do_redirect.c269 struct netns_obj *ns[NS_NB];
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 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_classification.c728 struct netns_obj *ns;
H A Dselect_reuseport.c787 struct netns_obj *netns; in test_config()