Lines Matching refs:bpf_ops
25 struct sock_filter *bpf_ops; member
92 return !prog->bpf_ops; in tcf_bpf_is_ebpf()
108 memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla)); in tcf_bpf_dump_bpf_info()
185 struct sock_filter *bpf_ops; in tcf_bpf_init_from_ops() local
195 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in tcf_bpf_init_from_ops()
199 bpf_ops = kmemdup(nla_data(tb[TCA_ACT_BPF_OPS]), bpf_size, GFP_KERNEL); in tcf_bpf_init_from_ops()
200 if (bpf_ops == NULL) in tcf_bpf_init_from_ops()
204 fprog_tmp.filter = bpf_ops; in tcf_bpf_init_from_ops()
208 kfree(bpf_ops); in tcf_bpf_init_from_ops()
212 cfg->bpf_ops = bpf_ops; in tcf_bpf_init_from_ops()
258 kfree(cfg->bpf_ops); in tcf_bpf_cfg_cleanup()
271 cfg->bpf_ops = prog->bpf_ops; in tcf_bpf_prog_fill_cfg()
351 prog->bpf_ops = cfg.bpf_ops; in tcf_bpf_init()