Home
last modified time | relevance | path

Searched refs:BPF_CGROUP_INET_EGRESS (Results 1 – 17 of 17) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_attach_override.c45 if (CHECK(bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override()
63 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override()
72 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override()
81 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override()
87 if (CHECK(bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override()
95 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override()
106 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override()
111 if (CHECK(!bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override()
126 if (CHECK(!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override()
132 if (CHECK(!bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override()
[all …]
H A Dcgroup_attach_multi.c155 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi()
159 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi()
168 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi()
183 if (CHECK(bpf_prog_detach2(-1, cg5, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_multi()
198 BPF_CGROUP_INET_EGRESS, &attach_opts), in serial_test_cgroup_attach_multi()
205 BPF_CGROUP_INET_EGRESS, &attach_opts), in serial_test_cgroup_attach_multi()
213 BPF_CGROUP_INET_EGRESS, &attach_opts), in serial_test_cgroup_attach_multi()
221 BPF_CGROUP_INET_EGRESS, &attach_opts), in serial_test_cgroup_attach_multi()
229 BPF_CGROUP_INET_EGRESS, &attach_opts), in serial_test_cgroup_attach_multi()
236 BPF_CGROUP_INET_EGRESS, &attach_opts), in serial_test_cgroup_attach_multi()
[all …]
H A Dcgroup_link.c75 err = bpf_prog_query(cgs[0].fd, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_link()
83 err = bpf_prog_query(cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_link()
92 err = bpf_prog_query(cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_link()
113 BPF_CGROUP_INET_EGRESS, BPF_F_ALLOW_MULTI); in serial_test_cgroup_link()
130 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in serial_test_cgroup_link()
137 BPF_CGROUP_INET_EGRESS, 0); in serial_test_cgroup_link()
153 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in serial_test_cgroup_link()
170 BPF_CGROUP_INET_EGRESS, 0); in serial_test_cgroup_link()
172 bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in serial_test_cgroup_link()
243 BPF_CGROUP_INET_EGRESS); in serial_test_cgroup_link()
H A Dcgroup_attach_autodetach.c53 BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_autodetach()
59 if (CHECK(bpf_prog_query(cg, BPF_CGROUP_INET_EGRESS, 0, &attach_flags, in serial_test_cgroup_attach_autodetach()
H A Dcg_storage_multi.c96 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_egress_only()
196 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated()
207 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated()
238 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated()
249 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated()
H A Dsection_names.c51 {0, BPF_PROG_TYPE_CGROUP_SKB, BPF_CGROUP_INET_EGRESS},
52 {0, BPF_CGROUP_INET_EGRESS},
H A Dload_bytes_relative.c47 err = bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, in test_load_bytes_relative()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_cgroup_storage.c84 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { in main()
/openbmc/linux/samples/bpf/
H A Dtest_cgrp2_attach.c159 type = BPF_CGROUP_INET_EGRESS; in main()
/openbmc/linux/Documentation/bpf/libbpf/
H A Dprogram_types.rst28 | | ``BPF_CGROUP_INET_EGRESS`` | ``cgroup_skb…
/openbmc/linux/tools/bpf/bpftool/
H A Dcommon.c1138 case BPF_CGROUP_INET_EGRESS: return "egress"; in bpf_attach_type_input_str()
/openbmc/linux/kernel/bpf/
H A Dcgroup.c2552 case BPF_CGROUP_INET_EGRESS: in cgroup_common_func_proto()
2567 case BPF_CGROUP_INET_EGRESS: in cgroup_common_func_proto()
H A Dsyscall.c2495 case BPF_CGROUP_INET_EGRESS: in bpf_prog_load_check_attach()
3763 case BPF_CGROUP_INET_EGRESS: in attach_type_to_prog_type()
4043 case BPF_CGROUP_INET_EGRESS: in bpf_prog_query()
H A Dverifier.c15011 if (env->prog->expected_attach_type == BPF_CGROUP_INET_EGRESS) { in check_return_code()
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf.h1012 BPF_CGROUP_INET_EGRESS, enumerator
/openbmc/linux/include/uapi/linux/
H A Dbpf.h1012 BPF_CGROUP_INET_EGRESS, enumerator
/openbmc/linux/tools/lib/bpf/
H A Dlibbpf.c77 [BPF_CGROUP_INET_EGRESS] = "cgroup_inet_egress",
8840 SEC_DEF("cgroup_skb/egress", CGROUP_SKB, BPF_CGROUP_INET_EGRESS, SEC_ATTACHABLE_OPT),