Home
last modified time | relevance | path

Searched refs:bpf_num_ops (Results 1 – 3 of 3) sorted by relevance

/linux-4.4.14/net/sched/
Dact_bpf.c32 u16 bpf_num_ops; member
103 if (nla_put_u16(skb, TCA_ACT_BPF_OPS_LEN, prog->bpf_num_ops)) in tcf_bpf_dump_bpf_info()
106 nla = nla_reserve(skb, TCA_ACT_BPF_OPS, prog->bpf_num_ops * in tcf_bpf_dump_bpf_info()
181 u16 bpf_size, bpf_num_ops; in tcf_bpf_init_from_ops() local
184 bpf_num_ops = nla_get_u16(tb[TCA_ACT_BPF_OPS_LEN]); in tcf_bpf_init_from_ops()
185 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in tcf_bpf_init_from_ops()
188 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in tcf_bpf_init_from_ops()
198 fprog_tmp.len = bpf_num_ops; in tcf_bpf_init_from_ops()
208 cfg->bpf_num_ops = bpf_num_ops; in tcf_bpf_init_from_ops()
338 if (cfg.bpf_num_ops) in tcf_bpf_init()
[all …]
Dcls_bpf.c46 u16 bpf_num_ops; member
231 u16 bpf_size, bpf_num_ops; in cls_bpf_prog_from_ops() local
234 bpf_num_ops = nla_get_u16(tb[TCA_BPF_OPS_LEN]); in cls_bpf_prog_from_ops()
235 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in cls_bpf_prog_from_ops()
238 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops()
248 fprog_tmp.len = bpf_num_ops; in cls_bpf_prog_from_ops()
258 prog->bpf_num_ops = bpf_num_ops; in cls_bpf_prog_from_ops()
438 if (nla_put_u16(skb, TCA_BPF_OPS_LEN, prog->bpf_num_ops)) in cls_bpf_dump_bpf_info()
441 nla = nla_reserve(skb, TCA_BPF_OPS, prog->bpf_num_ops * in cls_bpf_dump_bpf_info()
/linux-4.4.14/include/net/tc_act/
Dtc_bpf.h21 u16 bpf_num_ops; member