Lines Matching refs:qid
268 static int ice_xsk_pool_disable(struct ice_vsi *vsi, u16 qid) in ice_xsk_pool_disable() argument
270 struct xsk_buff_pool *pool = xsk_get_pool_from_qid(vsi->netdev, qid); in ice_xsk_pool_disable()
275 clear_bit(qid, vsi->af_xdp_zc_qps); in ice_xsk_pool_disable()
290 ice_xsk_pool_enable(struct ice_vsi *vsi, struct xsk_buff_pool *pool, u16 qid) in ice_xsk_pool_enable() argument
297 if (qid >= vsi->netdev->real_num_rx_queues || in ice_xsk_pool_enable()
298 qid >= vsi->netdev->real_num_tx_queues) in ice_xsk_pool_enable()
306 set_bit(qid, vsi->af_xdp_zc_qps); in ice_xsk_pool_enable()
319 int ice_xsk_pool_setup(struct ice_vsi *vsi, struct xsk_buff_pool *pool, u16 qid) in ice_xsk_pool_setup() argument
324 if (qid >= vsi->num_rxq || qid >= vsi->num_txq) { in ice_xsk_pool_setup()
330 if (!is_power_of_2(vsi->rx_rings[qid]->count) || in ice_xsk_pool_setup()
331 !is_power_of_2(vsi->tx_rings[qid]->count)) { in ice_xsk_pool_setup()
340 ret = ice_qp_dis(vsi, qid); in ice_xsk_pool_setup()
347 pool_failure = pool_present ? ice_xsk_pool_enable(vsi, pool, qid) : in ice_xsk_pool_setup()
348 ice_xsk_pool_disable(vsi, qid); in ice_xsk_pool_setup()
352 ret = ice_qp_ena(vsi, qid); in ice_xsk_pool_setup()
354 napi_schedule(&vsi->xdp_rings[qid]->q_vector->napi); in ice_xsk_pool_setup()