Home
last modified time | relevance | path

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

/linux/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.c4086 case BPF_TCX_INGRESS: in attach_type_to_prog_type()
4153 if (attach_type != BPF_TCX_INGRESS && in bpf_prog_attach_check_attach_type()
4239 if (attr->attach_type == BPF_TCX_INGRESS || in bpf_prog_attach()
4304 if (attr->attach_type == BPF_TCX_INGRESS || in bpf_prog_detach()
4372 case BPF_TCX_INGRESS: in bpf_prog_query()
5382 if (attr->link_create.attach_type == BPF_TCX_INGRESS || in link_create()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtc_opts.c35 assert_mprog_count(BPF_TCX_INGRESS, 0); in serial_test_tc_opts_basic()
41 err = bpf_prog_attach_opts(fd1, loopback, BPF_TCX_INGRESS, &opta); in serial_test_tc_opts_basic()
45 assert_mprog_count(BPF_TCX_INGRESS, 1); in serial_test_tc_opts_basic()
53 err = bpf_prog_query_opts(loopback, BPF_TCX_INGRESS, &optq); in serial_test_tc_opts_basic()
72 assert_mprog_count(BPF_TCX_INGRESS, 1); in serial_test_tc_opts_basic()
97 assert_mprog_count(BPF_TCX_INGRESS, 1); in serial_test_tc_opts_basic()
101 err = bpf_prog_detach_opts(fd1, loopback, BPF_TCX_INGRESS, &optd); in serial_test_tc_opts_basic()
104 assert_mprog_count(BPF_TCX_INGRESS, 0); in serial_test_tc_opts_basic()
259 test_tc_opts_before_target(BPF_TCX_INGRESS); in serial_test_tc_opts_before()
450 test_tc_opts_after_target(BPF_TCX_INGRESS); in serial_test_tc_opts_after()
[all …]
H A Dtc_links.c35 assert_mprog_count(BPF_TCX_INGRESS, 0); in serial_test_tc_links_basic()
49 assert_mprog_count(BPF_TCX_INGRESS, 1); in serial_test_tc_links_basic()
59 err = bpf_prog_query_opts(loopback, BPF_TCX_INGRESS, &optq); in serial_test_tc_links_basic()
85 assert_mprog_count(BPF_TCX_INGRESS, 1); in serial_test_tc_links_basic()
111 assert_mprog_count(BPF_TCX_INGRESS, 0); in serial_test_tc_links_basic()
265 test_tc_links_before_target(BPF_TCX_INGRESS); in serial_test_tc_links_before()
419 test_tc_links_after_target(BPF_TCX_INGRESS); in serial_test_tc_links_after()
519 test_tc_links_revision_target(BPF_TCX_INGRESS); in serial_test_tc_links_revision()
557 tc_hook.attach_point = target == BPF_TCX_INGRESS ? in test_tc_chain_classic()
623 test_tc_chain_classic(BPF_TCX_INGRESS, false); in serial_test_tc_links_chain_classic()
[all …]
/linux/Documentation/bpf/libbpf/
H A Dprogram_types.rst146 | | ``BPF_TCX_INGRESS`` | ``tc/ingress…
150 | | ``BPF_TCX_INGRESS`` | ``tcx/ingres…
/linux/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/include/uapi/linux/
H A Dbpf.h1108 BPF_TCX_INGRESS, enumerator
/linux/tools/include/uapi/linux/
H A Dbpf.h1108 BPF_TCX_INGRESS, enumerator
/linux/tools/lib/bpf/
H A Dbpf.c808 case BPF_TCX_INGRESS: in bpf_link_create()
H A Dlibbpf.c130 [BPF_TCX_INGRESS] = "tcx_ingress",
9438 SEC_DEF("tc/ingress", SCHED_CLS, BPF_TCX_INGRESS, SEC_NONE), /* alias for tcx */
9440 SEC_DEF("tcx/ingress", SCHED_CLS, BPF_TCX_INGRESS, SEC_NONE),