Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_ethtool.c2705 struct ice_tx_ring *xdp_rings = NULL; in ice_set_ringparam() local
2766 vsi->xdp_rings[i]->count = new_tx_cnt; in ice_set_ringparam()
2807 vsi->xdp_rings[0]->count, new_tx_cnt); in ice_set_ringparam()
2809 xdp_rings = kcalloc(vsi->num_xdp_txq, sizeof(*xdp_rings), GFP_KERNEL); in ice_set_ringparam()
2810 if (!xdp_rings) { in ice_set_ringparam()
2817 xdp_rings[i] = *vsi->xdp_rings[i]; in ice_set_ringparam()
2818 xdp_rings[i].count = new_tx_cnt; in ice_set_ringparam()
2819 xdp_rings[i].desc = NULL; in ice_set_ringparam()
2820 xdp_rings[i].tx_buf = NULL; in ice_set_ringparam()
2821 err = ice_setup_tx_ring(&xdp_rings[i]); in ice_set_ringparam()
[all …]
H A Dice_xsk.c43 memset(&vsi->xdp_rings[q_idx]->ring_stats->stats, 0, in ice_qp_reset_stats()
44 sizeof(vsi->xdp_rings[q_idx]->ring_stats->stats)); in ice_qp_reset_stats()
56 ice_clean_tx_ring(vsi->xdp_rings[q_idx]); in ice_qp_clean_rings()
192 struct ice_tx_ring *xdp_ring = vsi->xdp_rings[q_idx]; in ice_qp_dis()
244 struct ice_tx_ring *xdp_ring = vsi->xdp_rings[q_idx]; in ice_qp_ena()
H A Dice_main.c2603 WRITE_ONCE(vsi->xdp_rings[i], xdp_ring); in ice_xdp_alloc_setup_rings()
2618 if (vsi->xdp_rings[i] && vsi->xdp_rings[i]->desc) { in ice_xdp_alloc_setup_rings()
2619 kfree_rcu(vsi->xdp_rings[i]->ring_stats, rcu); in ice_xdp_alloc_setup_rings()
2620 vsi->xdp_rings[i]->ring_stats = NULL; in ice_xdp_alloc_setup_rings()
2621 ice_free_tx_ring(vsi->xdp_rings[i]); in ice_xdp_alloc_setup_rings()
2674 vsi->xdp_rings = devm_kcalloc(dev, vsi->num_xdp_txq, in ice_prepare_xdp_rings()
2675 sizeof(*vsi->xdp_rings), GFP_KERNEL); in ice_prepare_xdp_rings()
2676 if (!vsi->xdp_rings) in ice_prepare_xdp_rings()
2700 struct ice_tx_ring *xdp_ring = vsi->xdp_rings[q_id]; in ice_prepare_xdp_rings()
2711 vsi->rx_rings[i]->xdp_ring = vsi->xdp_rings[i % vsi->num_xdp_txq]; in ice_prepare_xdp_rings()
[all …]
H A Dice.h410 struct ice_tx_ring **xdp_rings; /* XDP ring array */ member
H A Dice_txrx.c630 xdp_ring = vsi->xdp_rings[queue_index]; in ice_xdp_xmit()
636 xdp_ring = vsi->xdp_rings[queue_index]; in ice_xdp_xmit()
H A Dice_lib.c1931 ret = ice_vsi_cfg_txqs(vsi, vsi->xdp_rings, vsi->num_xdp_txq); in ice_vsi_cfg_xdp_txqs()
2166 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()
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_xsk.c221 xdp_ring = rx_ring->vsi->xdp_rings[rx_ring->queue_index]; in i40e_run_xdp_zc()
734 if (!vsi->xdp_rings[queue_id]->xsk_pool) in i40e_xsk_wakeup()
737 ring = vsi->xdp_rings[queue_id]; in i40e_xsk_wakeup()
H A Di40e_main.c485 ring = READ_ONCE(vsi->xdp_rings[i]); in i40e_get_netdev_stats_struct()
953 p = READ_ONCE(vsi->xdp_rings[q]); in i40e_update_vsi_stats()
3360 err = i40e_setup_tx_descriptors(vsi->xdp_rings[i]); in i40e_vsi_setup_tx_resources()
3381 if (vsi->xdp_rings) { in i40e_vsi_free_tx_resources()
3383 if (vsi->xdp_rings[i] && vsi->xdp_rings[i]->desc) in i40e_vsi_free_tx_resources()
3384 i40e_free_tx_resources(vsi->xdp_rings[i]); in i40e_vsi_free_tx_resources()
3757 err = i40e_configure_tx_ring(vsi->xdp_rings[i]); in i40e_vsi_configure_tx()
4247 wr32(hw, I40E_QINT_TQCTL(vsi->xdp_rings[i]->reg_idx), 0); in i40e_vsi_disable_irq()
4570 struct i40e_ring *xdp_ring = vsi->xdp_rings[qp_idx]; in i40e_map_vector_to_qp()
7624 i40e_clean_tx_ring(vsi->xdp_rings[i]); in i40e_down()
[all …]
H A Di40e_txrx.c2331 xdp_ring = rx_ring->vsi->xdp_rings[rx_ring->queue_index]; in i40e_run_xdp()
2408 rx_ring->vsi->xdp_rings[rx_ring->queue_index]; in i40e_finalize_xdp_rx()
4081 xdp_ring = vsi->xdp_rings[queue_index]; in i40e_xdp_xmit()
H A Di40e_debugfs.c332 struct i40e_ring *xdp_ring = READ_ONCE(vsi->xdp_rings[i]); in i40e_dbg_dump_vsi_seid()
589 ring = kmemdup(vsi->xdp_rings[ring_id], sizeof(*ring), GFP_KERNEL); in i40e_dbg_dump_desc()
H A Di40e.h856 struct i40e_ring **xdp_rings; /* XDP Tx rings */ member
H A Di40e_ethtool.c2104 vsi->xdp_rings[i]->count = new_tx_count; in i40e_set_ringparam()