Home
last modified time | relevance | path

Searched refs:bpf_ops (Results 1 – 3 of 3) sorted by relevance

/linux-4.4.14/net/sched/
Dact_bpf.c29 struct sock_filter *bpf_ops; member
95 return !prog->bpf_ops; in tcf_bpf_is_ebpf()
111 memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla)); in tcf_bpf_dump_bpf_info()
178 struct sock_filter *bpf_ops; in tcf_bpf_init_from_ops() local
188 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in tcf_bpf_init_from_ops()
192 bpf_ops = kzalloc(bpf_size, GFP_KERNEL); in tcf_bpf_init_from_ops()
193 if (bpf_ops == NULL) in tcf_bpf_init_from_ops()
196 memcpy(bpf_ops, nla_data(tb[TCA_ACT_BPF_OPS]), bpf_size); in tcf_bpf_init_from_ops()
199 fprog_tmp.filter = bpf_ops; in tcf_bpf_init_from_ops()
203 kfree(bpf_ops); in tcf_bpf_init_from_ops()
[all …]
Dcls_bpf.c48 struct sock_filter *bpf_ops; member
139 return !prog->bpf_ops; in cls_bpf_is_ebpf()
166 kfree(prog->bpf_ops); in cls_bpf_delete_prog()
228 struct sock_filter *bpf_ops; in cls_bpf_prog_from_ops() local
238 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops()
242 bpf_ops = kzalloc(bpf_size, GFP_KERNEL); in cls_bpf_prog_from_ops()
243 if (bpf_ops == NULL) in cls_bpf_prog_from_ops()
246 memcpy(bpf_ops, nla_data(tb[TCA_BPF_OPS]), bpf_size); in cls_bpf_prog_from_ops()
249 fprog_tmp.filter = bpf_ops; in cls_bpf_prog_from_ops()
253 kfree(bpf_ops); in cls_bpf_prog_from_ops()
[all …]
/linux-4.4.14/include/net/tc_act/
Dtc_bpf.h23 struct sock_filter *bpf_ops; member