Home
last modified time | relevance | path

Searched refs:bpf_num_ops (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/net/sched/
H A Dact_bpf.c28 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()
191 u16 bpf_size, bpf_num_ops; in tcf_bpf_init_from_ops() local
194 bpf_num_ops = nla_get_u16(tb[TCA_ACT_BPF_OPS_LEN]); in tcf_bpf_init_from_ops()
195 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in tcf_bpf_init_from_ops()
198 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in tcf_bpf_init_from_ops()
206 fprog_tmp.len = bpf_num_ops; in tcf_bpf_init_from_ops()
216 cfg->bpf_num_ops in tcf_bpf_init_from_ops()
[all...]
H A Dcls_bpf.c46 u16 bpf_num_ops; member
343 u16 bpf_size, bpf_num_ops; in cls_bpf_prog_from_ops() local
346 bpf_num_ops = nla_get_u16(tb[TCA_BPF_OPS_LEN]); in cls_bpf_prog_from_ops()
347 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in cls_bpf_prog_from_ops()
350 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops()
358 fprog_tmp.len = bpf_num_ops; in cls_bpf_prog_from_ops()
368 prog->bpf_num_ops = bpf_num_ops; in cls_bpf_prog_from_ops()
547 if (nla_put_u16(skb, TCA_BPF_OPS_LEN, prog->bpf_num_ops)) in cls_bpf_dump_bpf_info()
[all...]
/kernel/linux/linux-6.6/net/sched/
H A Dact_bpf.c29 u16 bpf_num_ops; member
104 if (nla_put_u16(skb, TCA_ACT_BPF_OPS_LEN, prog->bpf_num_ops)) in tcf_bpf_dump_bpf_info()
107 nla = nla_reserve(skb, TCA_ACT_BPF_OPS, prog->bpf_num_ops * in tcf_bpf_dump_bpf_info()
192 u16 bpf_size, bpf_num_ops; in tcf_bpf_init_from_ops() local
195 bpf_num_ops = nla_get_u16(tb[TCA_ACT_BPF_OPS_LEN]); in tcf_bpf_init_from_ops()
196 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in tcf_bpf_init_from_ops()
199 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in tcf_bpf_init_from_ops()
207 fprog_tmp.len = bpf_num_ops; in tcf_bpf_init_from_ops()
217 cfg->bpf_num_ops in tcf_bpf_init_from_ops()
[all...]
H A Dcls_bpf.c47 u16 bpf_num_ops; member
344 u16 bpf_size, bpf_num_ops; in cls_bpf_prog_from_ops() local
347 bpf_num_ops = nla_get_u16(tb[TCA_BPF_OPS_LEN]); in cls_bpf_prog_from_ops()
348 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in cls_bpf_prog_from_ops()
351 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops()
359 fprog_tmp.len = bpf_num_ops; in cls_bpf_prog_from_ops()
369 prog->bpf_num_ops = bpf_num_ops; in cls_bpf_prog_from_ops()
543 if (nla_put_u16(skb, TCA_BPF_OPS_LEN, prog->bpf_num_ops)) in cls_bpf_dump_bpf_info()
[all...]
/kernel/linux/linux-5.10/include/net/tc_act/
H A Dtc_bpf.h17 u16 bpf_num_ops; member
/kernel/linux/linux-6.6/include/net/tc_act/
H A Dtc_bpf.h17 u16 bpf_num_ops; member

Completed in 4 milliseconds