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()
142 struct bpf_prog *mana_xdp_get(struct mana_port_context *apc) in mana_xdp_get()
146 return apc->bpf_prog; in mana_xdp_get()
149 static struct bpf_prog *mana_chn_xdp_get(struct mana_port_context *apc) in mana_chn_xdp_get()
151 return rtnl_dereference(apc->rxqs[0]->bpf_prog); in mana_chn_xdp_get()
155 void mana_chn_setxdp(struct mana_port_context *apc, struct bpf_prog *prog) in mana_chn_setxdp()
157 struct bpf_prog *old_prog = mana_chn_xdp_get(apc); in mana_chn_setxdp()
170 rcu_assign_pointer(apc->rxqs[i]->bpf_prog, prog); in mana_chn_setxdp()
177 static int mana_xdp_set(struct net_device *ndev, struct bpf_prog *prog, in mana_xdp_set()
181 struct bpf_prog *old_prog; in mana_xdp_set()
201 apc->bpf_prog = prog; in mana_xdp_set()