Lines Matching refs:apc
54 struct mana_port_context *apc = netdev_priv(ndev); in mana_xdp_xmit() local
59 if (unlikely(!apc->port_is_up)) in mana_xdp_xmit()
71 tx_stats = &apc->tx_qp[q_idx].txq.stats; in mana_xdp_xmit()
142 struct bpf_prog *mana_xdp_get(struct mana_port_context *apc) in mana_xdp_get() argument
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() argument
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() argument
157 struct bpf_prog *old_prog = mana_chn_xdp_get(apc); in mana_chn_setxdp()
158 unsigned int num_queues = apc->num_queues; in mana_chn_setxdp()
170 rcu_assign_pointer(apc->rxqs[i]->bpf_prog, prog); in mana_chn_setxdp()
180 struct mana_port_context *apc = netdev_priv(ndev); in mana_xdp_set() local
184 old_prog = mana_xdp_get(apc); in mana_xdp_set()
201 apc->bpf_prog = prog; in mana_xdp_set()
206 if (apc->port_is_up) in mana_xdp_set()
207 mana_chn_setxdp(apc, prog); in mana_xdp_set()