Searched refs:bpf_num_ops (Results 1 – 2 of 2) sorted by relevance
/net/sched/ |
D | act_bpf.c | 32 u16 bpf_num_ops; member 105 if (nla_put_u16(skb, TCA_ACT_BPF_OPS_LEN, prog->bpf_num_ops)) in tcf_bpf_dump_bpf_info() 108 nla = nla_reserve(skb, TCA_ACT_BPF_OPS, prog->bpf_num_ops * in tcf_bpf_dump_bpf_info() 182 u16 bpf_size, bpf_num_ops; in tcf_bpf_init_from_ops() local 185 bpf_num_ops = nla_get_u16(tb[TCA_ACT_BPF_OPS_LEN]); in tcf_bpf_init_from_ops() 186 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in tcf_bpf_init_from_ops() 189 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in tcf_bpf_init_from_ops() 199 fprog_tmp.len = bpf_num_ops; in tcf_bpf_init_from_ops() 209 cfg->bpf_num_ops = bpf_num_ops; in tcf_bpf_init_from_ops() 339 if (cfg.bpf_num_ops) in tcf_bpf_init() [all …]
|
D | cls_bpf.c | 50 u16 bpf_num_ops; member 320 u16 bpf_size, bpf_num_ops; in cls_bpf_prog_from_ops() local 323 bpf_num_ops = nla_get_u16(tb[TCA_BPF_OPS_LEN]); in cls_bpf_prog_from_ops() 324 if (bpf_num_ops > BPF_MAXINSNS || bpf_num_ops == 0) in cls_bpf_prog_from_ops() 327 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops() 337 fprog_tmp.len = bpf_num_ops; in cls_bpf_prog_from_ops() 347 prog->bpf_num_ops = bpf_num_ops; in cls_bpf_prog_from_ops() 546 if (nla_put_u16(skb, TCA_BPF_OPS_LEN, prog->bpf_num_ops)) in cls_bpf_dump_bpf_info() 549 nla = nla_reserve(skb, TCA_BPF_OPS, prog->bpf_num_ops * in cls_bpf_dump_bpf_info()
|