Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/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 test_cgroup_attach_override()
63 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override()
72 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override()
81 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override()
87 if (CHECK(bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override()
95 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override()
101 if (CHECK(!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, 0), in test_cgroup_attach_override()
106 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override()
111 if (CHECK(!bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override()
116 if (CHECK(bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRESS, 0), in test_cgroup_attach_override()
[all …]
H A Dcgroup_attach_multi.c116 if (CHECK(bpf_prog_attach(allow_prog[0], cg1, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi()
121 if (CHECK(!bpf_prog_attach(allow_prog[0], cg1, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi()
126 if (CHECK(bpf_prog_attach(allow_prog[1], cg1, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi()
131 if (CHECK(bpf_prog_attach(allow_prog[2], cg2, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi()
136 if (CHECK(bpf_prog_attach(allow_prog[3], cg3, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi()
141 if (CHECK(bpf_prog_attach(allow_prog[4], cg4, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi()
146 if (CHECK(bpf_prog_attach(allow_prog[5], cg5, BPF_CGROUP_INET_EGRESS, 0), in test_cgroup_attach_multi()
155 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi()
159 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi()
168 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi()
[all …]
H A Dcgroup_link.c76 err = bpf_prog_query(cgs[0].fd, BPF_CGROUP_INET_EGRESS, in test_cgroup_link()
85 err = bpf_prog_query(cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS, in test_cgroup_link()
95 err = bpf_prog_query(cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS, in test_cgroup_link()
117 BPF_CGROUP_INET_EGRESS, BPF_F_ALLOW_MULTI); in test_cgroup_link()
135 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in test_cgroup_link()
142 BPF_CGROUP_INET_EGRESS, 0); in test_cgroup_link()
158 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in test_cgroup_link()
176 BPF_CGROUP_INET_EGRESS, 0); in test_cgroup_link()
178 bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in test_cgroup_link()
249 BPF_CGROUP_INET_EGRESS); in test_cgroup_link()
H A Dcg_storage_multi.c92 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_egress_only()
199 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated()
210 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated()
244 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated()
255 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated()
H A Dcgroup_attach_autodetach.c53 BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_autodetach()
59 if (CHECK(bpf_prog_query(cg, BPF_CGROUP_INET_EGRESS, 0, &attach_flags, in test_cgroup_attach_autodetach()
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()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/
H A Dtest_netcnt.c66 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { in main()
76 if (bpf_prog_query(cgroup_fd, BPF_CGROUP_INET_EGRESS, 0, NULL, NULL, in main()
H A Dtest_cgroup_storage.c80 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { in main()
/OK3568_Linux_fs/kernel/samples/bpf/
H A Dhbm.c128 .expected_attach_type = BPF_CGROUP_INET_EGRESS, in prog_load()
167 int type = BPF_CGROUP_INET_EGRESS; in run_bpf_prog()
H A Dtest_cgrp2_attach.c154 type = BPF_CGROUP_INET_EGRESS; in main()
/OK3568_Linux_fs/kernel/include/linux/
H A Dbpf-cgroup.h242 BPF_CGROUP_INET_EGRESS); \
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dbpf.h164 BPF_CGROUP_INET_EGRESS, enumerator
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dbpf.h164 BPF_CGROUP_INET_EGRESS, enumerator
/OK3568_Linux_fs/kernel/tools/bpf/bpftool/
H A Dcommon.c35 [BPF_CGROUP_INET_EGRESS] = "egress",
/OK3568_Linux_fs/kernel/tools/include/uapi/linux/
H A Dbpf.h206 BPF_CGROUP_INET_EGRESS, enumerator
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dbpf.h206 BPF_CGROUP_INET_EGRESS, enumerator
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dsyscall.c2044 case BPF_CGROUP_INET_EGRESS: in bpf_prog_load_check_attach()
2939 case BPF_CGROUP_INET_EGRESS: in attach_type_to_prog_type()
3093 case BPF_CGROUP_INET_EGRESS: in bpf_prog_query()
H A Dcgroup.c1063 if (type == BPF_CGROUP_INET_EGRESS) { in __cgroup_bpf_run_filter_skb()
H A Dverifier.c8350 if (env->prog->expected_attach_type == BPF_CGROUP_INET_EGRESS) { in check_return_code()
/OK3568_Linux_fs/kernel/tools/lib/bpf/
H A Dlibbpf.c8399 BPF_CGROUP_INET_EGRESS),