Home
last modified time | relevance | path

Searched refs:tc_attach (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dcgroup_ancestor.c19 struct bpf_tc_opts tc_attach; member
67 memset(&t->tc_attach, 0, sizeof(t->tc_attach)); in setup_network()
68 t->tc_attach.sz = sizeof(t->tc_attach); in setup_network()
69 t->tc_attach.prog_fd = bpf_program__fd(t->skel->progs.log_cgroup_id); in setup_network()
70 if (!ASSERT_OK(bpf_tc_attach(&t->qdisc, &t->tc_attach), "filter add")) in setup_network()
87 bpf_tc_detach(&t->qdisc, &t->tc_attach); in cleanup_network()
Ddecap_sanity.c19 LIBBPF_OPTS(bpf_tc_opts, tc_attach); in test_decap_sanity()
47 tc_attach.prog_fd = bpf_program__fd(skel->progs.decap_sanity); in test_decap_sanity()
48 err = bpf_tc_attach(&qdisc_hook, &tc_attach); in test_decap_sanity()
Dtcp_custom_syncookie.c53 LIBBPF_OPTS(bpf_tc_opts, tc_attach, in setup_tc()
60 if (!ASSERT_OK(bpf_tc_attach(&qdisc_lo, &tc_attach), in setup_tc()
Dbtf_skc_cls_ingress.c27 LIBBPF_OPTS(bpf_tc_opts, tc_attach, in prepare_netns()
43 if (!ASSERT_OK(bpf_tc_attach(&qdisc_lo, &tc_attach), in prepare_netns()
Dtc_redirect.c350 LIBBPF_OPTS(bpf_tc_opts, tc_attach); in xgress_filter_add()
355 tc_attach.prog_fd = bpf_program__fd(prog); in xgress_filter_add()
356 tc_attach.priority = priority; in xgress_filter_add()
357 err = bpf_tc_attach(qdisc_hook, &tc_attach); in xgress_filter_add()