Lines Matching refs:qid
87 u16 qid) in i40e_xsk_pool_enable() argument
96 if (qid >= vsi->num_queue_pairs) in i40e_xsk_pool_enable()
99 if (qid >= netdev->real_num_rx_queues || in i40e_xsk_pool_enable()
100 qid >= netdev->real_num_tx_queues) in i40e_xsk_pool_enable()
107 set_bit(qid, vsi->af_xdp_zc_qps); in i40e_xsk_pool_enable()
112 err = i40e_queue_pair_disable(vsi, qid); in i40e_xsk_pool_enable()
116 err = i40e_realloc_rx_xdp_bi(vsi->rx_rings[qid], true); in i40e_xsk_pool_enable()
120 err = i40e_queue_pair_enable(vsi, qid); in i40e_xsk_pool_enable()
125 err = i40e_xsk_wakeup(vsi->netdev, qid, XDP_WAKEUP_RX); in i40e_xsk_pool_enable()
141 static int i40e_xsk_pool_disable(struct i40e_vsi *vsi, u16 qid) in i40e_xsk_pool_disable() argument
148 pool = xsk_get_pool_from_qid(netdev, qid); in i40e_xsk_pool_disable()
155 err = i40e_queue_pair_disable(vsi, qid); in i40e_xsk_pool_disable()
160 clear_bit(qid, vsi->af_xdp_zc_qps); in i40e_xsk_pool_disable()
164 err = i40e_realloc_rx_xdp_bi(vsi->rx_rings[qid], false); in i40e_xsk_pool_disable()
167 err = i40e_queue_pair_enable(vsi, qid); in i40e_xsk_pool_disable()
187 u16 qid) in i40e_xsk_pool_setup() argument
189 return pool ? i40e_xsk_pool_enable(vsi, pool, qid) : in i40e_xsk_pool_setup()
190 i40e_xsk_pool_disable(vsi, qid); in i40e_xsk_pool_setup()