Home
last modified time | relevance | path

Searched refs:oldprog (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/net/sched/
Dcls_bpf.c144 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
[all …]
/linux-6.1.9/drivers/net/netdevsim/
Dbpf.c104 nsim_bpf_offload(struct netdevsim *ns, struct bpf_prog *prog, bool oldprog) in nsim_bpf_offload() argument
108 WARN(!!ns->bpf_offloaded != oldprog, in nsim_bpf_offload()
110 oldprog ? "" : "not "); in nsim_bpf_offload()
124 struct bpf_prog *oldprog; in nsim_bpf_setup_tc_block_cb() local
156 oldprog = cls_bpf->oldprog; in nsim_bpf_setup_tc_block_cb()
159 if (ns->bpf_offloaded != oldprog) { in nsim_bpf_setup_tc_block_cb()
160 oldprog = NULL; in nsim_bpf_setup_tc_block_cb()
170 return nsim_bpf_offload(ns, cls_bpf->prog, oldprog); in nsim_bpf_setup_tc_block_cb()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/bpf/
Dmain.c110 struct bpf_prog *oldprog; in nfp_bpf_setup_tc_block_cb() local
144 oldprog = cls_bpf->oldprog; in nfp_bpf_setup_tc_block_cb()
147 if (bv->tc_prog != oldprog) { in nfp_bpf_setup_tc_block_cb()
148 oldprog = NULL; in nfp_bpf_setup_tc_block_cb()
153 err = nfp_net_bpf_offload(nn, cls_bpf->prog, oldprog, in nfp_bpf_setup_tc_block_cb()
/linux-6.1.9/include/net/
Dpkt_cls.h786 struct bpf_prog *oldprog; member