Searched refs:bpf_num_ops (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.15/net/sched/ |
D | act_bpf.c | 28 u16 bpf_num_ops; member 101 if (nla_put_u16(skb, TCA_ACT_BPF_OPS_LEN, prog->bpf_num_ops)) in tcf_bpf_dump_bpf_info() 104 nla = nla_reserve(skb, TCA_ACT_BPF_OPS, prog->bpf_num_ops * in tcf_bpf_dump_bpf_info() 189 u16 bpf_size, bpf_num_ops; in tcf_bpf_init_from_ops() local 192 bpf_num_ops = nla_get_u16(tb[TCA_ACT_BPF_OPS_LEN]); in tcf_bpf_init_from_ops() 193 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in tcf_bpf_init_from_ops() 196 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in tcf_bpf_init_from_ops() 204 fprog_tmp.len = bpf_num_ops; in tcf_bpf_init_from_ops() 214 cfg->bpf_num_ops = bpf_num_ops; in tcf_bpf_init_from_ops() 356 if (cfg.bpf_num_ops) in tcf_bpf_init() [all …]
|
D | cls_bpf.c | 46 u16 bpf_num_ops; member 340 u16 bpf_size, bpf_num_ops; in cls_bpf_prog_from_ops() local 343 bpf_num_ops = nla_get_u16(tb[TCA_BPF_OPS_LEN]); in cls_bpf_prog_from_ops() 344 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in cls_bpf_prog_from_ops() 347 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops() 355 fprog_tmp.len = bpf_num_ops; in cls_bpf_prog_from_ops() 365 prog->bpf_num_ops = bpf_num_ops; in cls_bpf_prog_from_ops() 544 if (nla_put_u16(skb, TCA_BPF_OPS_LEN, prog->bpf_num_ops)) in cls_bpf_dump_bpf_info() 547 nla = nla_reserve(skb, TCA_BPF_OPS, prog->bpf_num_ops * in cls_bpf_dump_bpf_info()
|
/Linux-v5.15/include/net/tc_act/ |
D | tc_bpf.h | 17 u16 bpf_num_ops; member
|