Searched refs:BPF_CGROUP_INET_EGRESS (Results 1 - 16 of 16) sorted by relevance

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_attach_override.c45 if (CHECK(bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS,
63 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS,
72 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS),
81 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS,
87 if (CHECK(bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS),
95 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS,
101 if (CHECK(!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, 0),
106 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS),
111 if (CHECK(!bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS),
116 if (CHECK(bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRESS,
[all...]
H A Dcgroup_attach_multi.c116 if (CHECK(bpf_prog_attach(allow_prog[0], cg1, BPF_CGROUP_INET_EGRESS,
121 if (CHECK(!bpf_prog_attach(allow_prog[0], cg1, BPF_CGROUP_INET_EGRESS,
126 if (CHECK(bpf_prog_attach(allow_prog[1], cg1, BPF_CGROUP_INET_EGRESS,
131 if (CHECK(bpf_prog_attach(allow_prog[2], cg2, BPF_CGROUP_INET_EGRESS,
136 if (CHECK(bpf_prog_attach(allow_prog[3], cg3, BPF_CGROUP_INET_EGRESS,
141 if (CHECK(bpf_prog_attach(allow_prog[4], cg4, BPF_CGROUP_INET_EGRESS,
146 if (CHECK(bpf_prog_attach(allow_prog[5], cg5, BPF_CGROUP_INET_EGRESS, 0),
155 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS,
159 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS,
168 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS,
[all...]
H A Dcgroup_link.c75 err = bpf_prog_query(cgs[0].fd, BPF_CGROUP_INET_EGRESS,
83 err = bpf_prog_query(cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS,
92 err = bpf_prog_query(cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS,
113 BPF_CGROUP_INET_EGRESS, BPF_F_ALLOW_MULTI);
130 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS);
137 BPF_CGROUP_INET_EGRESS, 0);
153 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS);
170 BPF_CGROUP_INET_EGRESS, 0);
172 bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS);
243 BPF_CGROUP_INET_EGRESS);
[all...]
H A Dcgroup_attach_autodetach.c53 BPF_CGROUP_INET_EGRESS,
59 if (CHECK(bpf_prog_query(cg, BPF_CGROUP_INET_EGRESS, 0, &attach_flags,
H A Dload_bytes_relative.c47 err = bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS,
H A Dsection_names.c51 {0, BPF_PROG_TYPE_CGROUP_SKB, BPF_CGROUP_INET_EGRESS},
52 {0, BPF_CGROUP_INET_EGRESS},
H A Dcg_storage_multi.c96 key.attach_type = BPF_CGROUP_INET_EGRESS;
196 key.attach_type = BPF_CGROUP_INET_EGRESS;
207 key.attach_type = BPF_CGROUP_INET_EGRESS;
238 key.attach_type = BPF_CGROUP_INET_EGRESS;
249 key.attach_type = BPF_CGROUP_INET_EGRESS;
/linux-master/tools/testing/selftests/bpf/
H A Dtest_cgroup_storage.c84 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) {
/linux-master/samples/bpf/
H A Dtest_cgrp2_attach.c159 type = BPF_CGROUP_INET_EGRESS;
/linux-master/tools/bpf/bpftool/
H A Dcommon.c1066 case BPF_CGROUP_INET_EGRESS: return "egress";
/linux-master/kernel/bpf/
H A Dcgroup.c2533 case BPF_CGROUP_INET_EGRESS:
2551 case BPF_CGROUP_INET_EGRESS:
H A Dsyscall.c2592 case BPF_CGROUP_INET_EGRESS:
3903 case BPF_CGROUP_INET_EGRESS:
4195 case BPF_CGROUP_INET_EGRESS:
H A Dverifier.c15452 if (env->prog->expected_attach_type == BPF_CGROUP_INET_EGRESS) {
/linux-master/include/uapi/linux/
H A Dbpf.h1063 BPF_CGROUP_INET_EGRESS, enumerator in enum:bpf_attach_type
/linux-master/tools/include/uapi/linux/
H A Dbpf.h1063 BPF_CGROUP_INET_EGRESS, enumerator in enum:bpf_attach_type
/linux-master/tools/lib/bpf/
H A Dlibbpf.c80 [BPF_CGROUP_INET_EGRESS] = "cgroup_inet_egress",
9306 SEC_DEF("cgroup_skb/egress", CGROUP_SKB, BPF_CGROUP_INET_EGRESS, SEC_ATTACHABLE_OPT),

Completed in 360 milliseconds