Searched refs:bpf_ops (Results 1 - 3 of 3) sorted by relevance
/linux-4.1.27/net/sched/ |
H A D | act_bpf.c | 29 struct sock_filter *bpf_ops; member in struct:tcf_bpf_cfg 89 return !prog->bpf_ops; tcf_bpf_is_ebpf() 105 memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla)); tcf_bpf_dump_bpf_info() 172 struct sock_filter *bpf_ops; tcf_bpf_init_from_ops() local 182 bpf_size = bpf_num_ops * sizeof(*bpf_ops); tcf_bpf_init_from_ops() 186 bpf_ops = kzalloc(bpf_size, GFP_KERNEL); tcf_bpf_init_from_ops() 187 if (bpf_ops == NULL) tcf_bpf_init_from_ops() 190 memcpy(bpf_ops, nla_data(tb[TCA_ACT_BPF_OPS]), bpf_size); tcf_bpf_init_from_ops() 193 fprog_tmp.filter = bpf_ops; tcf_bpf_init_from_ops() 197 kfree(bpf_ops); tcf_bpf_init_from_ops() 201 cfg->bpf_ops = bpf_ops; tcf_bpf_init_from_ops() 251 kfree(cfg->bpf_ops); tcf_bpf_cfg_cleanup() 261 cfg->bpf_ops = prog->bpf_ops; tcf_bpf_prog_fill_cfg() 324 prog->bpf_ops = cfg.bpf_ops; tcf_bpf_init()
|
H A D | cls_bpf.c | 47 struct sock_filter *bpf_ops; member in struct:cls_bpf_prog 97 return !prog->bpf_ops; cls_bpf_is_ebpf() 124 kfree(prog->bpf_ops); cls_bpf_delete_prog() 187 struct sock_filter *bpf_ops; cls_bpf_prog_from_ops() local 197 bpf_size = bpf_num_ops * sizeof(*bpf_ops); cls_bpf_prog_from_ops() 201 bpf_ops = kzalloc(bpf_size, GFP_KERNEL); cls_bpf_prog_from_ops() 202 if (bpf_ops == NULL) cls_bpf_prog_from_ops() 205 memcpy(bpf_ops, nla_data(tb[TCA_BPF_OPS]), bpf_size); cls_bpf_prog_from_ops() 208 fprog_tmp.filter = bpf_ops; cls_bpf_prog_from_ops() 212 kfree(bpf_ops); cls_bpf_prog_from_ops() 216 prog->bpf_ops = bpf_ops; cls_bpf_prog_from_ops() 254 prog->bpf_ops = NULL; cls_bpf_prog_from_efd() 395 memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla)); cls_bpf_dump_bpf_info()
|
/linux-4.1.27/include/net/tc_act/ |
H A D | tc_bpf.h | 23 struct sock_filter *bpf_ops; member in struct:tcf_bpf
|
Completed in 76 milliseconds