Home
last modified time | relevance | path

Searched refs:BPF_TCX_INGRESS (Results 1 – 12 of 12) sorted by relevance

/linux-6.15/kernel/bpf/
H A Dtcx.c12 bool created, ingress = attr->attach_type == BPF_TCX_INGRESS; in tcx_prog_attach()
61 bool ingress = attr->attach_type == BPF_TCX_INGRESS; in tcx_prog_detach()
124 bool ingress = attr->query.attach_type == BPF_TCX_INGRESS; in tcx_prog_query()
145 bool created, ingress = tcx->location == BPF_TCX_INGRESS; in tcx_link_prog_attach()
172 bool ingress = tcx->location == BPF_TCX_INGRESS; in tcx_link_release()
207 bool ingress = tcx->location == BPF_TCX_INGRESS; in tcx_link_update()
264 tcx->location == BPF_TCX_INGRESS ? "ingress" : "egress"); in tcx_link_fdinfo()
H A Dsyscall.c4105 case BPF_TCX_INGRESS: in attach_type_to_prog_type()
4172 if (attach_type != BPF_TCX_INGRESS && in bpf_prog_attach_check_attach_type()
4259 if (attr->attach_type == BPF_TCX_INGRESS || in bpf_prog_attach()
4324 if (attr->attach_type == BPF_TCX_INGRESS || in bpf_prog_detach()
4392 case BPF_TCX_INGRESS: in bpf_prog_query()
5421 if (attr->link_create.attach_type == BPF_TCX_INGRESS || in link_create()
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dtc_opts.c35 assert_mprog_count(BPF_TCX_INGRESS, 0); in test_ns_tc_opts_basic()
45 assert_mprog_count(BPF_TCX_INGRESS, 1); in test_ns_tc_opts_basic()
72 assert_mprog_count(BPF_TCX_INGRESS, 1); in test_ns_tc_opts_basic()
97 assert_mprog_count(BPF_TCX_INGRESS, 1); in test_ns_tc_opts_basic()
104 assert_mprog_count(BPF_TCX_INGRESS, 0); in test_ns_tc_opts_basic()
259 test_tc_opts_before_target(BPF_TCX_INGRESS); in test_ns_tc_opts_before()
450 test_tc_opts_after_target(BPF_TCX_INGRESS); in test_ns_tc_opts_after()
662 test_tc_chain_classic(BPF_TCX_INGRESS, true); in test_ns_tc_opts_chain_classic()
1302 test_tc_opts_append_target(BPF_TCX_INGRESS); in test_ns_tc_opts_append()
1568 test_tc_opts_mixed_target(BPF_TCX_INGRESS); in test_ns_tc_opts_mixed()
[all …]
H A Dtc_links.c35 assert_mprog_count(BPF_TCX_INGRESS, 0); in test_ns_tc_links_basic()
49 assert_mprog_count(BPF_TCX_INGRESS, 1); in test_ns_tc_links_basic()
85 assert_mprog_count(BPF_TCX_INGRESS, 1); in test_ns_tc_links_basic()
111 assert_mprog_count(BPF_TCX_INGRESS, 0); in test_ns_tc_links_basic()
265 test_tc_links_before_target(BPF_TCX_INGRESS); in test_ns_tc_links_before()
419 test_tc_links_after_target(BPF_TCX_INGRESS); in test_ns_tc_links_after()
623 test_tc_chain_classic(BPF_TCX_INGRESS, false); in test_ns_tc_links_chain_classic()
625 test_tc_chain_classic(BPF_TCX_INGRESS, true); in test_ns_tc_links_chain_classic()
1475 test_tc_links_append_target(BPF_TCX_INGRESS); in test_ns_tc_links_append()
1677 test_tc_chain_mixed(BPF_TCX_INGRESS); in test_ns_tc_links_chain_mixed()
[all …]
H A Dnetns_cookie.c46 err = bpf_prog_attach_opts(tc_fd, loopback, BPF_TCX_INGRESS, &opta); in test_netns_cookie()
91 err = bpf_prog_detach_opts(tc_fd, loopback, BPF_TCX_INGRESS, &optd); in test_netns_cookie()
H A Dtc_netkit.c761 BPF_TCX_INGRESS), 0, "tc7_attach_type"); in serial_test_tc_netkit_pkt_type_mode()
768 assert_mprog_count_ifindex(ifindex2, BPF_TCX_INGRESS, 0); in serial_test_tc_netkit_pkt_type_mode()
777 assert_mprog_count_ifindex(ifindex2, BPF_TCX_INGRESS, 0); in serial_test_tc_netkit_pkt_type_mode()
786 assert_mprog_count_ifindex(ifindex2, BPF_TCX_INGRESS, 1); in serial_test_tc_netkit_pkt_type_mode()
/linux-6.15/Documentation/bpf/libbpf/
H A Dprogram_types.rst146 | | ``BPF_TCX_INGRESS`` | ``tc/ingress…
150 | | ``BPF_TCX_INGRESS`` | ``tcx/ingres…
/linux-6.15/tools/bpf/bpftool/
H A Dnet.c84 [BPF_TCX_INGRESS] = "tcx/ingress",
513 __show_dev_tc_bpf(dev, BPF_TCX_INGRESS); in show_dev_tc_bpf()
658 return BPF_TCX_INGRESS; in get_tcx_type()
/linux-6.15/tools/include/uapi/linux/
H A Dbpf.h1111 BPF_TCX_INGRESS, enumerator
/linux-6.15/include/uapi/linux/
H A Dbpf.h1111 BPF_TCX_INGRESS, enumerator
/linux-6.15/tools/lib/bpf/
H A Dbpf.c808 case BPF_TCX_INGRESS: in bpf_link_create()
H A Dlibbpf.c130 [BPF_TCX_INGRESS] = "tcx_ingress",
9503 SEC_DEF("tc/ingress", SCHED_CLS, BPF_TCX_INGRESS, SEC_NONE), /* alias for tcx */
9505 SEC_DEF("tcx/ingress", SCHED_CLS, BPF_TCX_INGRESS, SEC_NONE),