Home
last modified time | relevance | path

Searched refs:xdp_rings (Results 1 – 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_xsk.c27 memset(&vsi->xdp_rings[q_idx]->stats, 0, in ice_qp_reset_stats()
28 sizeof(vsi->xdp_rings[q_idx]->stats)); in ice_qp_reset_stats()
40 ice_clean_tx_ring(vsi->xdp_rings[q_idx]); in ice_qp_clean_rings()
177 struct ice_ring *xdp_ring = vsi->xdp_rings[q_idx]; in ice_qp_dis()
231 struct ice_ring *xdp_ring = vsi->xdp_rings[q_idx]; in ice_qp_ena()
389 napi_schedule(&vsi->xdp_rings[qid]->q_vector->napi); in ice_xsk_pool_setup()
540 xdp_ring = rx_ring->vsi->xdp_rings[rx_ring->q_index]; in ice_run_xdp_zc()
828 if (!vsi->xdp_rings[queue_id]->xsk_pool) in ice_xsk_wakeup()
831 ring = vsi->xdp_rings[queue_id]; in ice_xsk_wakeup()
Dice_ethtool.c2704 struct ice_ring *xdp_rings = NULL; in ice_set_ringparam() local
2759 vsi->xdp_rings[i]->count = new_tx_cnt; in ice_set_ringparam()
2799 vsi->xdp_rings[0]->count, new_tx_cnt); in ice_set_ringparam()
2801 xdp_rings = kcalloc(vsi->num_xdp_txq, sizeof(*xdp_rings), GFP_KERNEL); in ice_set_ringparam()
2802 if (!xdp_rings) { in ice_set_ringparam()
2809 xdp_rings[i] = *vsi->xdp_rings[i]; in ice_set_ringparam()
2810 xdp_rings[i].count = new_tx_cnt; in ice_set_ringparam()
2811 xdp_rings[i].desc = NULL; in ice_set_ringparam()
2812 xdp_rings[i].tx_buf = NULL; in ice_set_ringparam()
2813 err = ice_setup_tx_ring(&xdp_rings[i]); in ice_set_ringparam()
[all …]
Dice_main.c2288 WRITE_ONCE(vsi->xdp_rings[i], xdp_ring); in ice_xdp_alloc_setup_rings()
2299 if (vsi->xdp_rings[i] && vsi->xdp_rings[i]->desc) in ice_xdp_alloc_setup_rings()
2300 ice_free_tx_ring(vsi->xdp_rings[i]); in ice_xdp_alloc_setup_rings()
2349 vsi->xdp_rings = devm_kcalloc(dev, vsi->num_xdp_txq, in ice_prepare_xdp_rings()
2350 sizeof(*vsi->xdp_rings), GFP_KERNEL); in ice_prepare_xdp_rings()
2351 if (!vsi->xdp_rings) in ice_prepare_xdp_rings()
2371 struct ice_ring *xdp_ring = vsi->xdp_rings[q_id]; in ice_prepare_xdp_rings()
2416 if (vsi->xdp_rings[i]) { in ice_prepare_xdp_rings()
2417 kfree_rcu(vsi->xdp_rings[i], rcu); in ice_prepare_xdp_rings()
2418 vsi->xdp_rings[i] = NULL; in ice_prepare_xdp_rings()
[all …]
Dice_txrx_lib.c286 rx_ring->vsi->xdp_rings[rx_ring->q_index]; in ice_finalize_xdp_rx()
Dice.h326 struct ice_ring **xdp_rings; /* XDP ring array */ member
Dice_lib.c1766 ret = ice_vsi_cfg_txqs(vsi, vsi->xdp_rings, vsi->num_xdp_txq); in ice_vsi_cfg_xdp_txqs()
1771 vsi->xdp_rings[i]->xsk_pool = ice_xsk_pool(vsi->xdp_rings[i]); in ice_vsi_cfg_xdp_txqs()
2012 return ice_vsi_stop_tx_rings(vsi, ICE_NO_RESET, 0, vsi->xdp_rings, vsi->num_xdp_txq); in ice_vsi_stop_xdp_tx_rings()
Dice_txrx.c549 xdp_ring = rx_ring->vsi->xdp_rings[smp_processor_id()]; in ice_run_xdp()
602 xdp_ring = vsi->xdp_rings[queue_index]; in ice_xdp_xmit()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_xsk.c174 xdp_ring = rx_ring->vsi->xdp_rings[rx_ring->queue_index]; in i40e_run_xdp_zc()
551 if (!vsi->xdp_rings[queue_id]->xsk_pool) in i40e_xsk_wakeup()
554 ring = vsi->xdp_rings[queue_id]; in i40e_xsk_wakeup()
Di40e_main.c460 ring = READ_ONCE(vsi->xdp_rings[i]); in i40e_get_netdev_stats_struct()
844 p = READ_ONCE(vsi->xdp_rings[q]); in i40e_update_vsi_stats()
3087 err = i40e_setup_tx_descriptors(vsi->xdp_rings[i]); in i40e_vsi_setup_tx_resources()
3108 if (vsi->xdp_rings) { in i40e_vsi_free_tx_resources()
3110 if (vsi->xdp_rings[i] && vsi->xdp_rings[i]->desc) in i40e_vsi_free_tx_resources()
3111 i40e_free_tx_resources(vsi->xdp_rings[i]); in i40e_vsi_free_tx_resources()
3460 err = i40e_configure_tx_ring(vsi->xdp_rings[i]); in i40e_vsi_configure_tx()
3940 wr32(hw, I40E_QINT_TQCTL(vsi->xdp_rings[i]->reg_idx), 0); in i40e_vsi_disable_irq()
4261 struct i40e_ring *xdp_ring = vsi->xdp_rings[qp_idx]; in i40e_map_vector_to_qp()
6965 i40e_clean_tx_ring(vsi->xdp_rings[i]); in i40e_down()
[all …]
Di40e_txrx.c2206 xdp_ring = rx_ring->vsi->xdp_rings[rx_ring->queue_index]; in i40e_run_xdp()
2303 rx_ring->vsi->xdp_rings[rx_ring->queue_index]; in i40e_finalize_xdp_rx()
3804 xdp_ring = vsi->xdp_rings[queue_index]; in i40e_xdp_xmit()
Di40e.h767 struct i40e_ring **xdp_rings; /* XDP Tx rings */ member
Di40e_debugfs.c330 struct i40e_ring *xdp_ring = READ_ONCE(vsi->xdp_rings[i]); in i40e_dbg_dump_vsi_seid()
587 ring = kmemdup(vsi->xdp_rings[ring_id], sizeof(*ring), GFP_KERNEL); in i40e_dbg_dump_desc()
Di40e_ethtool.c2001 vsi->xdp_rings[i]->count = new_tx_count; in i40e_set_ringparam()