Lines Matching refs:bpf_ops
47 struct sock_filter *bpf_ops; member
97 return !prog->bpf_ops; in cls_bpf_is_ebpf()
124 kfree(prog->bpf_ops); in cls_bpf_delete_prog()
187 struct sock_filter *bpf_ops; in cls_bpf_prog_from_ops() local
197 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops()
201 bpf_ops = kzalloc(bpf_size, GFP_KERNEL); in cls_bpf_prog_from_ops()
202 if (bpf_ops == NULL) in cls_bpf_prog_from_ops()
205 memcpy(bpf_ops, nla_data(tb[TCA_BPF_OPS]), bpf_size); in cls_bpf_prog_from_ops()
208 fprog_tmp.filter = bpf_ops; in cls_bpf_prog_from_ops()
212 kfree(bpf_ops); in cls_bpf_prog_from_ops()
216 prog->bpf_ops = bpf_ops; in cls_bpf_prog_from_ops()
254 prog->bpf_ops = NULL; in cls_bpf_prog_from_efd()
395 memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla)); in cls_bpf_dump_bpf_info()