Searched refs:bpf_ops (Results 1 – 2 of 2) sorted by relevance
29 struct sock_filter *bpf_ops; member97 return !prog->bpf_ops; in tcf_bpf_is_ebpf()113 memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla)); in tcf_bpf_dump_bpf_info()179 struct sock_filter *bpf_ops; in tcf_bpf_init_from_ops() local189 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in tcf_bpf_init_from_ops()193 bpf_ops = kzalloc(bpf_size, GFP_KERNEL); in tcf_bpf_init_from_ops()194 if (bpf_ops == NULL) in tcf_bpf_init_from_ops()197 memcpy(bpf_ops, nla_data(tb[TCA_ACT_BPF_OPS]), bpf_size); in tcf_bpf_init_from_ops()200 fprog_tmp.filter = bpf_ops; in tcf_bpf_init_from_ops()204 kfree(bpf_ops); in tcf_bpf_init_from_ops()[all …]
52 struct sock_filter *bpf_ops; member145 return !prog->bpf_ops; in cls_bpf_is_ebpf()257 kfree(prog->bpf_ops); in cls_bpf_delete_prog()317 struct sock_filter *bpf_ops; in cls_bpf_prog_from_ops() local327 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops()331 bpf_ops = kzalloc(bpf_size, GFP_KERNEL); in cls_bpf_prog_from_ops()332 if (bpf_ops == NULL) in cls_bpf_prog_from_ops()335 memcpy(bpf_ops, nla_data(tb[TCA_BPF_OPS]), bpf_size); in cls_bpf_prog_from_ops()338 fprog_tmp.filter = bpf_ops; in cls_bpf_prog_from_ops()342 kfree(bpf_ops); in cls_bpf_prog_from_ops()[all …]