Searched refs:bpf_num_ops (Results 1 - 3 of 3) sorted by relevance
/linux-4.1.27/net/sched/ |
H A D | act_bpf.c | 32 u16 bpf_num_ops; member in struct:tcf_bpf_cfg 97 if (nla_put_u16(skb, TCA_ACT_BPF_OPS_LEN, prog->bpf_num_ops)) tcf_bpf_dump_bpf_info() 100 nla = nla_reserve(skb, TCA_ACT_BPF_OPS, prog->bpf_num_ops * tcf_bpf_dump_bpf_info() 175 u16 bpf_size, bpf_num_ops; tcf_bpf_init_from_ops() local 178 bpf_num_ops = nla_get_u16(tb[TCA_ACT_BPF_OPS_LEN]); tcf_bpf_init_from_ops() 179 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) tcf_bpf_init_from_ops() 182 bpf_size = bpf_num_ops * sizeof(*bpf_ops); tcf_bpf_init_from_ops() 192 fprog_tmp.len = bpf_num_ops; tcf_bpf_init_from_ops() 202 cfg->bpf_num_ops = bpf_num_ops; tcf_bpf_init_from_ops() 327 if (cfg.bpf_num_ops) tcf_bpf_init() 328 prog->bpf_num_ops = cfg.bpf_num_ops; tcf_bpf_init()
|
H A D | cls_bpf.c | 45 u16 bpf_num_ops; member in union:cls_bpf_prog::__anon14228 190 u16 bpf_size, bpf_num_ops; cls_bpf_prog_from_ops() local 193 bpf_num_ops = nla_get_u16(tb[TCA_BPF_OPS_LEN]); cls_bpf_prog_from_ops() 194 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) cls_bpf_prog_from_ops() 197 bpf_size = bpf_num_ops * sizeof(*bpf_ops); cls_bpf_prog_from_ops() 207 fprog_tmp.len = bpf_num_ops; cls_bpf_prog_from_ops() 217 prog->bpf_num_ops = bpf_num_ops; cls_bpf_prog_from_ops() 387 if (nla_put_u16(skb, TCA_BPF_OPS_LEN, prog->bpf_num_ops)) cls_bpf_dump_bpf_info() 390 nla = nla_reserve(skb, TCA_BPF_OPS, prog->bpf_num_ops * cls_bpf_dump_bpf_info()
|
/linux-4.1.27/include/net/tc_act/ |
H A D | tc_bpf.h | 21 u16 bpf_num_ops; member in union:tcf_bpf::__anon12831
|
Completed in 84 milliseconds