Lines Matching refs:gen_flags

42 	u32 gen_flags;  member
93 if (tc_skip_sw(prog->gen_flags)) { in cls_bpf_classify()
153 skip_sw = prog && tc_skip_sw(prog->gen_flags); in cls_bpf_offload_cmd()
156 tc_cls_common_offload_init(&cls_bpf.common, tp, obj->gen_flags, extack); in cls_bpf_offload_cmd()
166 skip_sw, &oldprog->gen_flags, in cls_bpf_offload_cmd()
168 &prog->gen_flags, &prog->in_hw_count, in cls_bpf_offload_cmd()
172 skip_sw, &prog->gen_flags, in cls_bpf_offload_cmd()
176 skip_sw, &oldprog->gen_flags, in cls_bpf_offload_cmd()
184 if (prog && skip_sw && !(prog->gen_flags & TCA_CLS_FLAGS_IN_HW)) in cls_bpf_offload_cmd()
200 cls_bpf_flags(prog->gen_flags) != in cls_bpf_offload()
201 cls_bpf_flags(oldprog->gen_flags)) in cls_bpf_offload()
204 if (prog && tc_skip_hw(prog->gen_flags)) in cls_bpf_offload()
206 if (oldprog && tc_skip_hw(oldprog->gen_flags)) in cls_bpf_offload()
231 tc_cls_common_offload_init(&cls_bpf.common, tp, prog->gen_flags, NULL); in cls_bpf_offload_update_stats()
375 u32 gen_flags, const struct tcf_proto *tp) in cls_bpf_prog_from_efd() argument
383 skip_sw = gen_flags & TCA_CLS_FLAGS_SKIP_SW; in cls_bpf_prog_from_efd()
413 u32 gen_flags = 0; in cls_bpf_set_parms() local
435 gen_flags = nla_get_u32(tb[TCA_BPF_FLAGS_GEN]); in cls_bpf_set_parms()
436 if (gen_flags & ~CLS_BPF_SUPPORTED_GEN_FLAGS || in cls_bpf_set_parms()
437 !tc_flags_valid(gen_flags)) in cls_bpf_set_parms()
442 prog->gen_flags = gen_flags; in cls_bpf_set_parms()
445 cls_bpf_prog_from_efd(tb, prog, gen_flags, tp); in cls_bpf_set_parms()
514 if (!tc_in_hw(prog->gen_flags)) in cls_bpf_change()
515 prog->gen_flags |= TCA_CLS_FLAGS_NOT_IN_HW; in cls_bpf_change()
617 if (prog->gen_flags && in cls_bpf_dump()
618 nla_put_u32(skb, TCA_BPF_FLAGS_GEN, prog->gen_flags)) in cls_bpf_dump()
674 if (tc_skip_hw(prog->gen_flags)) in cls_bpf_reoffload()
677 tc_cls_common_offload_init(&cls_bpf.common, tp, prog->gen_flags, in cls_bpf_reoffload()
687 &cls_bpf, cb_priv, &prog->gen_flags, in cls_bpf_reoffload()