/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
D | rx.c | 30 if (unlikely(!xsk_buff_can_alloc(rq->xsk_pool, rq->mpwqe.pages_per_wqe))) in mlx5e_xsk_alloc_rx_mpwqe() 35 batch = xsk_buff_alloc_batch(rq->xsk_pool, xsk_buffs, in mlx5e_xsk_alloc_rx_mpwqe() 45 xsk_buffs[batch] = xsk_buff_alloc(rq->xsk_pool); in mlx5e_xsk_alloc_rx_mpwqe() 102 rq->xsk_pool->chunk_size); in mlx5e_xsk_alloc_rx_mpwqe() 103 __be32 frame_size = cpu_to_be32(rq->xsk_pool->chunk_size); in mlx5e_xsk_alloc_rx_mpwqe() 173 alloc = xsk_buff_alloc_batch(rq->xsk_pool, buffs + ix, wqe_bulk); in mlx5e_xsk_alloc_rx_wqes_batched() 175 alloc = xsk_buff_alloc_batch(rq->xsk_pool, buffs + ix, contig); in mlx5e_xsk_alloc_rx_wqes_batched() 177 alloc += xsk_buff_alloc_batch(rq->xsk_pool, buffs, wqe_bulk - contig); in mlx5e_xsk_alloc_rx_wqes_batched() 213 *frag->xskp = xsk_buff_alloc(rq->xsk_pool); in mlx5e_xsk_alloc_rx_wqes() 273 xsk_buff_dma_sync_for_cpu(&mxbuf->xdp, rq->xsk_pool); in mlx5e_xsk_skb_from_cqe_mpwrq_linear() [all …]
|
D | tx.c | 63 struct xsk_buff_pool *pool = sq->xsk_pool; in mlx5e_xsk_tx()
|
D | setup.c | 81 rq->xsk_pool = pool; in mlx5e_init_xsk_rq()
|
/Linux-v6.6/drivers/net/ethernet/intel/i40e/ |
D | i40e_xsk.c | 214 if (xsk_uses_need_wakeup(rx_ring->xsk_pool) && err == -ENOBUFS) in i40e_run_xdp_zc() 256 nb_buffs = xsk_buff_alloc_batch(rx_ring->xsk_pool, xdp, nb_buffs); in i40e_alloc_rx_buffers_zc() 490 xsk_buff_dma_sync_for_cpu(bi, rx_ring->xsk_pool); in i40e_clean_rx_irq_zc() 526 if (xsk_uses_need_wakeup(rx_ring->xsk_pool)) { in i40e_clean_rx_irq_zc() 528 xsk_set_rx_need_wakeup(rx_ring->xsk_pool); in i40e_clean_rx_irq_zc() 530 xsk_clear_rx_need_wakeup(rx_ring->xsk_pool); in i40e_clean_rx_irq_zc() 544 dma = xsk_buff_raw_get_dma(xdp_ring->xsk_pool, desc->addr); in i40e_xmit_pkt() 545 xsk_buff_raw_dma_sync_for_device(xdp_ring->xsk_pool, dma, desc->len); in i40e_xmit_pkt() 565 dma = xsk_buff_raw_get_dma(xdp_ring->xsk_pool, desc[i].addr); in i40e_xmit_pkt_batch() 566 xsk_buff_raw_dma_sync_for_device(xdp_ring->xsk_pool, dma, desc[i].len); in i40e_xmit_pkt_batch() [all …]
|
/Linux-v6.6/drivers/net/ethernet/intel/ice/ |
D | ice_xsk.c | 497 nb_buffs_extra = ice_fill_rx_descs(rx_ring->xsk_pool, xdp, in __ice_alloc_rx_bufs_zc() 511 nb_buffs = ice_fill_rx_descs(rx_ring->xsk_pool, xdp, rx_desc, count); in __ice_alloc_rx_bufs_zc() 667 xsk_tx_completed(xdp_ring->xsk_pool, xsk_frames); in ice_clean_xdp_irq_zc() 719 xsk_buff_raw_dma_sync_for_device(xdp_ring->xsk_pool, dma, size); in ice_xmit_xdp_tx_zc() 777 if (xsk_uses_need_wakeup(rx_ring->xsk_pool) && err == -ENOBUFS) in ice_run_xdp_zc() 846 struct xsk_buff_pool *xsk_pool = rx_ring->xsk_pool; in ice_clean_rx_irq_zc() local 896 xsk_buff_dma_sync_for_cpu(xdp, xsk_pool); in ice_clean_rx_irq_zc() 968 if (xsk_uses_need_wakeup(xsk_pool)) { in ice_clean_rx_irq_zc() 973 xsk_set_rx_need_wakeup(xsk_pool); in ice_clean_rx_irq_zc() 975 xsk_clear_rx_need_wakeup(xsk_pool); in ice_clean_rx_irq_zc() [all …]
|
D | ice_base.c | 544 ring->xsk_pool = ice_xsk_pool(ring); in ice_vsi_cfg_rxq() 545 if (ring->xsk_pool) { in ice_vsi_cfg_rxq() 549 xsk_pool_get_rx_frame_size(ring->xsk_pool); in ice_vsi_cfg_rxq() 555 xsk_pool_set_rxq_info(ring->xsk_pool, &ring->xdp_rxq); in ice_vsi_cfg_rxq() 585 if (ring->xsk_pool) { in ice_vsi_cfg_rxq() 588 if (!xsk_buff_can_alloc(ring->xsk_pool, num_bufs)) { in ice_vsi_cfg_rxq()
|
D | ice_txrx.h | 335 struct xsk_buff_pool *xsk_pool; member 360 struct xsk_buff_pool *xsk_pool; member
|
D | ice_txrx.c | 156 if (ice_ring_is_xdp(tx_ring) && tx_ring->xsk_pool) { in ice_clean_tx_ring() 394 if (rx_ring->xsk_pool) { in ice_clean_rx_ring() 429 if (rx_ring->xsk_pool) in ice_clean_rx_ring() 460 if (rx_ring->xsk_pool) { in ice_free_rx_ring() 1529 if (tx_ring->xsk_pool) in ice_napi_poll() 1562 cleaned = rx_ring->xsk_pool ? in ice_napi_poll()
|
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/nfd3/ |
D | xsk.c | 21 struct xsk_buff_pool *pool = r_vec->xsk_pool; in nfp_nfd3_xsk_tx_xdp() 187 xsk_buff_dma_sync_for_cpu(xrxbuf->xdp, r_vec->xsk_pool); in nfp_nfd3_xsk_rx() 324 xsk_tx_completed(r_vec->xsk_pool, done_pkts - reused); in nfp_nfd3_xsk_complete() 337 struct xsk_buff_pool *xsk_pool; in nfp_nfd3_xsk_tx() local 342 xsk_pool = r_vec->xsk_pool; in nfp_nfd3_xsk_tx() 346 if (!xsk_tx_peek_desc(xsk_pool, &desc[i])) in nfp_nfd3_xsk_tx() 356 xsk_buff_raw_dma_sync_for_device(xsk_pool, desc[i].addr, in nfp_nfd3_xsk_tx() 368 xsk_buff_raw_get_dma(xsk_pool, desc[i].addr)); in nfp_nfd3_xsk_tx() 381 xsk_tx_release(xsk_pool); in nfp_nfd3_xsk_tx()
|
D | rings.c | 25 if (tx_ring->r_vec->xsk_pool) { in nfp_nfd3_xsk_tx_bufs_free() 29 xsk_tx_completed(tx_ring->r_vec->xsk_pool, 1); in nfp_nfd3_xsk_tx_bufs_free()
|
/Linux-v6.6/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-xsk.c | 49 ch->xsk_pool->umem->headroom); in dpaa2_xsk_run_xdp() 58 xsk_buff_dma_sync_for_cpu(xdp_buff, ch->xsk_pool); in dpaa2_xsk_run_xdp() 183 if (!ch->xsk_pool) in dpaa2_xsk_disable_pool() 200 ch->xsk_pool = NULL; in dpaa2_xsk_disable_pool() 265 ch->xsk_pool = pool; in dpaa2_xsk_enable_pool() 354 addr = xsk_buff_raw_get_dma(ch->xsk_pool, xdp_desc->addr); in dpaa2_xsk_tx_build_fd() 355 xsk_buff_raw_dma_sync_for_device(ch->xsk_pool, addr, xdp_desc->len); in dpaa2_xsk_tx_build_fd() 393 struct xdp_desc *xdp_descs = ch->xsk_pool->tx_descs; in dpaa2_xsk_tx() 410 batch = xsk_tx_peek_release_desc_batch(ch->xsk_pool, budget); in dpaa2_xsk_tx() 451 xsk_tx_release(ch->xsk_pool); in dpaa2_xsk_tx()
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_txrx.c | 90 bool need_wakeup = xsk_uses_need_wakeup(xskrq->xsk_pool); in mlx5e_napi_xsk_post() 98 xsk_set_tx_need_wakeup(xsksq->xsk_pool); in mlx5e_napi_xsk_post() 102 xsk_clear_tx_need_wakeup(xsksq->xsk_pool); in mlx5e_napi_xsk_post() 108 xsk_set_rx_need_wakeup(xskrq->xsk_pool); in mlx5e_napi_xsk_post() 117 xsk_set_rx_need_wakeup(xskrq->xsk_pool); in mlx5e_napi_xsk_post() 119 xsk_clear_rx_need_wakeup(xskrq->xsk_pool); in mlx5e_napi_xsk_post()
|
D | en_main.c | 476 u32 xsk_chunk_size = rq->xsk_pool ? rq->xsk_pool->chunk_size : 0; in mlx5e_create_rq_umr_mkey() 519 WARN_ON(rq->xsk_pool); in mlx5e_init_frags_partition() 582 if (rq->xsk_pool) in mlx5e_init_wqe_alloc_info() 600 if (rq->xsk_pool) in mlx5e_init_wqe_alloc_info() 831 xsk_pool_set_rxq_info(rq->xsk_pool, &rq->xdp_rxq); in mlx5e_alloc_rq() 1342 struct xsk_buff_pool *xsk_pool, in mlx5e_alloc_xdpsq() argument 1358 sq->xsk_pool = xsk_pool; in mlx5e_alloc_xdpsq() 1360 sq->stats = sq->xsk_pool ? in mlx5e_alloc_xdpsq() 1848 struct mlx5e_sq_param *param, struct xsk_buff_pool *xsk_pool, in mlx5e_open_xdpsq() argument 1854 err = mlx5e_alloc_xdpsq(c, params, xsk_pool, param, sq, is_redirect); in mlx5e_open_xdpsq() [all …]
|
D | en.h | 500 struct xsk_buff_pool *xsk_pool; member 724 struct xsk_buff_pool *xsk_pool; member 1025 struct mlx5e_sq_param *param, struct xsk_buff_pool *xsk_pool,
|
/Linux-v6.6/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_xsk.c | 114 if (xsk_uses_need_wakeup(rx_ring->xsk_pool) && err == -ENOBUFS) in ixgbe_run_xdp_zc() 168 bi->xdp = xsk_buff_alloc(rx_ring->xsk_pool); in ixgbe_alloc_rx_buffers_zc() 307 xsk_buff_dma_sync_for_cpu(bi->xdp, rx_ring->xsk_pool); in ixgbe_clean_rx_irq_zc() 369 if (xsk_uses_need_wakeup(rx_ring->xsk_pool)) { in ixgbe_clean_rx_irq_zc() 371 xsk_set_rx_need_wakeup(rx_ring->xsk_pool); in ixgbe_clean_rx_irq_zc() 373 xsk_clear_rx_need_wakeup(rx_ring->xsk_pool); in ixgbe_clean_rx_irq_zc() 398 struct xsk_buff_pool *pool = xdp_ring->xsk_pool; in ixgbe_xmit_zc() 466 struct xsk_buff_pool *pool = tx_ring->xsk_pool; in ixgbe_clean_xdp_tx_irq() 538 if (!ring->xsk_pool) in ixgbe_xsk_wakeup() 553 struct xsk_buff_pool *pool = tx_ring->xsk_pool; in ixgbe_xsk_clean_tx_ring()
|
/Linux-v6.6/drivers/net/ethernet/engleder/ |
D | tsnep_main.c | 700 dma = xsk_buff_raw_get_dma(tx->xsk_pool, xdpd->addr); in tsnep_xdp_tx_map_zc() 701 xsk_buff_raw_dma_sync_for_device(tx->xsk_pool, dma, xdpd->len); in tsnep_xdp_tx_map_zc() 725 struct xdp_desc *descs = tx->xsk_pool->tx_descs; in tsnep_xdp_xmit_zc() 736 batch = xsk_tx_peek_release_desc_batch(tx->xsk_pool, desc_available); in tsnep_xdp_xmit_zc() 825 if (tx->xsk_pool) { in tsnep_tx_poll() 827 xsk_tx_completed(tx->xsk_pool, xsk_frames); in tsnep_tx_poll() 828 if (xsk_uses_need_wakeup(tx->xsk_pool)) in tsnep_tx_poll() 829 xsk_set_tx_need_wakeup(tx->xsk_pool); in tsnep_tx_poll() 891 if (!rx->xsk_pool && entry->page) in tsnep_rx_ring_cleanup() 894 if (rx->xsk_pool && entry->xdp) in tsnep_rx_ring_cleanup() [all …]
|
D | tsnep.h | 93 struct xsk_buff_pool *xsk_pool; member 131 struct xsk_buff_pool *xsk_pool; member
|
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_xsk.c | 22 headroom = xsk_pool_get_headroom(rx_ring->r_vec->xsk_pool); in nfp_net_xsk_rx_bufs_stash() 60 struct xsk_buff_pool *pool = r_vec->xsk_pool; in nfp_net_xsk_rx_ring_fill_freelist()
|
D | nfp_net_debugfs.c | 46 if (!r_vec->xsk_pool) { in nfp_rx_q_show()
|
/Linux-v6.6/drivers/net/ethernet/google/gve/ |
D | gve_tx.c | 187 if (xsk_complete > 0 && tx->xsk_pool) in gve_clean_xdp_done() 188 xsk_tx_completed(tx->xsk_pool, xsk_complete); in gve_clean_xdp_done() 901 if (!xsk_tx_peek_desc(tx->xsk_pool, &desc)) { in gve_xsk_tx() 906 data = xsk_buff_raw_get_data(tx->xsk_pool, desc.addr); in gve_xsk_tx() 914 xsk_tx_release(tx->xsk_pool); in gve_xsk_tx() 938 if (tx->xsk_pool) { in gve_xdp_poll() 945 if (xsk_uses_need_wakeup(tx->xsk_pool)) in gve_xdp_poll() 946 xsk_set_tx_need_wakeup(tx->xsk_pool); in gve_xdp_poll()
|
D | gve_main.c | 1206 rx->xsk_pool = xsk_get_pool_from_qid(dev, i); in gve_reg_xdp_info() 1207 if (rx->xsk_pool) { in gve_reg_xdp_info() 1216 xsk_pool_set_rxq_info(rx->xsk_pool, in gve_reg_xdp_info() 1223 priv->tx[tx_qid].xsk_pool = xsk_get_pool_from_qid(dev, i); in gve_reg_xdp_info() 1249 if (rx->xsk_pool) { in gve_unreg_xdp_info() 1251 rx->xsk_pool = NULL; in gve_unreg_xdp_info() 1257 priv->tx[tx_qid].xsk_pool = NULL; in gve_unreg_xdp_info() 1541 rx->xsk_pool = pool; in gve_xsk_pool_enable() 1544 priv->tx[tx_qid].xsk_pool = pool; in gve_xsk_pool_enable() 1577 priv->rx[qid].xsk_pool = NULL; in gve_xsk_pool_disable() [all …]
|
D | gve.h | 282 struct xsk_buff_pool *xsk_pool; member 570 struct xsk_buff_pool *xsk_pool; member
|
/Linux-v6.6/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac.h | 74 struct xsk_buff_pool *xsk_pool; member 107 struct xsk_buff_pool *xsk_pool; member
|
D | stmmac_main.c | 239 if (rx_q->xsk_pool) { in stmmac_disable_all_queues() 1645 buf->xdp = xsk_buff_alloc(rx_q->xsk_pool); in stmmac_alloc_rx_buffers_zc() 1690 rx_q->xsk_pool = stmmac_get_xsk_pool(priv, queue); in __init_dma_rx_desc_rings() 1692 if (rx_q->xsk_pool) { in __init_dma_rx_desc_rings() 1699 xsk_pool_set_rxq_info(rx_q->xsk_pool, &rx_q->xdp_rxq); in __init_dma_rx_desc_rings() 1709 if (rx_q->xsk_pool) { in __init_dma_rx_desc_rings() 1760 if (rx_q->xsk_pool) in init_dma_rx_desc_rings() 1766 rx_q->xsk_pool = NULL; in init_dma_rx_desc_rings() 1806 tx_q->xsk_pool = stmmac_get_xsk_pool(priv, queue); in __init_dma_tx_desc_rings() 1893 if (tx_q->xsk_pool && tx_q->xsk_frames_done) { in dma_free_tx_skbufs() [all …]
|
/Linux-v6.6/drivers/net/ethernet/intel/igc/ |
D | igc_main.c | 251 if (tx_ring->xsk_pool && xsk_frames) in igc_clean_tx_ring() 252 xsk_tx_completed(tx_ring->xsk_pool, xsk_frames); in igc_clean_tx_ring() 464 if (ring->xsk_pool) in igc_clean_rx_ring() 636 ring->xsk_pool = igc_get_xsk_pool(adapter, ring); in igc_configure_rx_ring() 637 if (ring->xsk_pool) { in igc_configure_rx_ring() 641 xsk_pool_set_rxq_info(ring->xsk_pool, &ring->xdp_rxq); in igc_configure_rx_ring() 670 if (ring->xsk_pool) in igc_configure_rx_ring() 671 buf_size = xsk_pool_get_rx_frame_size(ring->xsk_pool); in igc_configure_rx_ring() 736 ring->xsk_pool = igc_get_xsk_pool(adapter, ring); in igc_configure_tx_ring() 2308 bi->xdp = xsk_buff_alloc(ring->xsk_pool); in igc_alloc_rx_buffers_zc() [all …]
|