Lines Matching refs:bpf_ops
48 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()
257 prog->bpf_ops = bpf_ops; in cls_bpf_prog_from_ops()
293 prog->bpf_ops = NULL; in cls_bpf_prog_from_efd()
446 memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla)); in cls_bpf_dump_bpf_info()