Lines Matching refs:bpf_prog
84 struct bpf_prog *prog; in mana_run_xdp()
88 prog = rcu_dereference(rxq->bpf_prog); in mana_run_xdp()
136 struct bpf_prog *mana_xdp_get(struct mana_port_context *apc) in mana_xdp_get()
140 return apc->bpf_prog; in mana_xdp_get()
143 static struct bpf_prog *mana_chn_xdp_get(struct mana_port_context *apc) in mana_chn_xdp_get()
145 return rtnl_dereference(apc->rxqs[0]->bpf_prog); in mana_chn_xdp_get()
149 void mana_chn_setxdp(struct mana_port_context *apc, struct bpf_prog *prog) in mana_chn_setxdp()
151 struct bpf_prog *old_prog = mana_chn_xdp_get(apc); in mana_chn_setxdp()
164 rcu_assign_pointer(apc->rxqs[i]->bpf_prog, prog); in mana_chn_setxdp()
171 static int mana_xdp_set(struct net_device *ndev, struct bpf_prog *prog, in mana_xdp_set()
175 struct bpf_prog *old_prog; in mana_xdp_set()
196 apc->bpf_prog = prog; in mana_xdp_set()