Lines Matching refs:oldprog

144 			       struct cls_bpf_prog *oldprog,  in cls_bpf_offload_cmd()  argument
154 obj = prog ?: oldprog; in cls_bpf_offload_cmd()
160 cls_bpf.oldprog = oldprog ? oldprog->filter : NULL; in cls_bpf_offload_cmd()
164 if (oldprog && prog) in cls_bpf_offload_cmd()
166 skip_sw, &oldprog->gen_flags, in cls_bpf_offload_cmd()
167 &oldprog->in_hw_count, in cls_bpf_offload_cmd()
176 skip_sw, &oldprog->gen_flags, in cls_bpf_offload_cmd()
177 &oldprog->in_hw_count, true); in cls_bpf_offload_cmd()
180 cls_bpf_offload_cmd(tp, oldprog, prog, extack); in cls_bpf_offload_cmd()
196 struct cls_bpf_prog *oldprog, in cls_bpf_offload() argument
199 if (prog && oldprog && in cls_bpf_offload()
201 cls_bpf_flags(oldprog->gen_flags)) in cls_bpf_offload()
206 if (oldprog && tc_skip_hw(oldprog->gen_flags)) in cls_bpf_offload()
207 oldprog = NULL; in cls_bpf_offload()
208 if (!prog && !oldprog) in cls_bpf_offload()
211 return cls_bpf_offload_cmd(tp, prog, oldprog, extack); in cls_bpf_offload()
464 struct cls_bpf_prog *oldprog = *arg; in cls_bpf_change() local
485 if (oldprog) { in cls_bpf_change()
486 if (handle && oldprog->handle != handle) { in cls_bpf_change()
496 } else if (!oldprog) { in cls_bpf_change()
510 ret = cls_bpf_offload(tp, prog, oldprog, extack); in cls_bpf_change()
517 if (oldprog) { in cls_bpf_change()
519 list_replace_rcu(&oldprog->link, &prog->link); in cls_bpf_change()
520 tcf_unbind_filter(tp, &oldprog->res); in cls_bpf_change()
521 tcf_exts_get_net(&oldprog->exts); in cls_bpf_change()
522 tcf_queue_work(&oldprog->rwork, cls_bpf_delete_prog_work); in cls_bpf_change()
533 if (!oldprog) in cls_bpf_change()
671 cls_bpf.oldprog = add ? NULL : prog->filter; in cls_bpf_reoffload()