Searched refs:BPF_PROG_TYPE_SOCKET_FILTER (Results 1 - 25 of 38) sorted by path

12

/linux-master/drivers/net/
H A Dtun.c3023 prog = bpf_prog_get_type(fd, BPF_PROG_TYPE_SOCKET_FILTER);
/linux-master/include/linux/
H A Dbpf_types.h5 BPF_PROG_TYPE(BPF_PROG_TYPE_SOCKET_FILTER, sk_filter,
/linux-master/include/uapi/linux/
H A Dbpf.h1026 BPF_PROG_TYPE_SOCKET_FILTER, enumerator in enum:bpf_prog_type
/linux-master/kernel/bpf/
H A Dbtf.c8131 case BPF_PROG_TYPE_SOCKET_FILTER:
H A Dsyscall.c2748 if (type != BPF_PROG_TYPE_SOCKET_FILTER &&
H A Dverifier.c8844 case BPF_PROG_TYPE_SOCKET_FILTER:
15267 case BPF_PROG_TYPE_SOCKET_FILTER:
18134 if (prog_type == BPF_PROG_TYPE_SOCKET_FILTER) {
/linux-master/lib/
H A Dtest_bpf.c14832 fp->type = BPF_PROG_TYPE_SOCKET_FILTER;
15431 fp->type = BPF_PROG_TYPE_SOCKET_FILTER;
/linux-master/net/core/
H A Dfilter.c1173 if (prog->type == BPF_PROG_TYPE_SOCKET_FILTER) {
1576 return bpf_prog_get_type(ufd, BPF_PROG_TYPE_SOCKET_FILTER);
1604 prog = bpf_prog_get_type(ufd, BPF_PROG_TYPE_SOCKET_FILTER);
1611 /* Like other non BPF_PROG_TYPE_SOCKET_FILTER
1626 /* BPF_PROG_TYPE_SOCKET_FILTER */
12050 ret = ret ?: register_btf_kfunc_id_set(BPF_PROG_TYPE_SOCKET_FILTER, &bpf_kfunc_set_skb);
/linux-master/net/kcm/
H A Dkcmsock.c1326 prog = bpf_prog_get_type(info->bpf_fd, BPF_PROG_TYPE_SOCKET_FILTER);
/linux-master/net/netfilter/
H A Dxt_bpf.c47 prog = bpf_prog_get_type(fd, BPF_PROG_TYPE_SOCKET_FILTER);
60 *ret = bpf_prog_get_type_path(path, BPF_PROG_TYPE_SOCKET_FILTER);
/linux-master/net/packet/
H A Daf_packet.c1623 new = bpf_prog_get_type(fd, BPF_PROG_TYPE_SOCKET_FILTER);
/linux-master/samples/bpf/
H A Dcookie_uid_helper_example.c165 prog_fd = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL",
H A Dfds_example.c72 return bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL",
H A Dsock_example.c68 prog_fd = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL",
H A Dsockex1_user.c27 bpf_program__set_type(prog, BPF_PROG_TYPE_SOCKET_FILTER);
H A Dsockex2_user.c31 bpf_program__set_type(prog, BPF_PROG_TYPE_SOCKET_FILTER);
/linux-master/tools/bpf/bpftool/
H A Dcommon.c110 attr.prog_type = BPF_PROG_TYPE_SOCKET_FILTER;
H A Dfeature.c792 fd = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL",
/linux-master/tools/include/uapi/linux/
H A Dbpf.h1026 BPF_PROG_TYPE_SOCKET_FILTER, enumerator in enum:bpf_prog_type
/linux-master/tools/lib/bpf/
H A Dbpf.c119 attr.prog_type = BPF_PROG_TYPE_SOCKET_FILTER;
H A Dfeatures.c34 attr.prog_type = BPF_PROG_TYPE_SOCKET_FILTER;
78 ret = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL", insns, insn_cnt, &prog_opts);
294 prog = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL", insns, insn_cnt, &prog_opts);
H A Dlibbpf.c193 [BPF_PROG_TYPE_SOCKET_FILTER] = "socket_filter",
4911 ret = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL", insns, insn_cnt, &opts);
6626 { BPF_PROG_TYPE_SOCKET_FILTER, "__sk_buff" },
H A Dlibbpf_probes.c162 case BPF_PROG_TYPE_SOCKET_FILTER:
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dalign.c620 fd_prog = bpf_prog_load(prog_type ? : BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL",
H A Dflow_dissector_reattach.c417 prog3 = load_prog(BPF_PROG_TYPE_SOCKET_FILTER);

Completed in 803 milliseconds

12