Home
last modified time | relevance | path

Searched refs:xsk_buffs (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Drx.c25 struct xdp_buff **xsk_buffs; in mlx5e_xsk_alloc_rx_mpwqe() local
34 xsk_buffs = (struct xdp_buff **)wi->alloc_units.xsk_buffs; 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()
46 if (unlikely(!xsk_buffs[batch])) in mlx5e_xsk_alloc_rx_mpwqe()
56 struct mlx5e_xdp_buff *mxbuf = xsk_buff_to_mxbuf(xsk_buffs[i]); in mlx5e_xsk_alloc_rx_mpwqe()
57 dma_addr_t addr = xsk_buff_xdp_get_frame_dma(xsk_buffs[i]); in mlx5e_xsk_alloc_rx_mpwqe()
66 struct mlx5e_xdp_buff *mxbuf = xsk_buff_to_mxbuf(xsk_buffs[i]); in mlx5e_xsk_alloc_rx_mpwqe()
67 dma_addr_t addr = xsk_buff_xdp_get_frame_dma(xsk_buffs[i]); in mlx5e_xsk_alloc_rx_mpwqe()
79 struct mlx5e_xdp_buff *mxbuf = xsk_buff_to_mxbuf(xsk_buffs[i]); in mlx5e_xsk_alloc_rx_mpwqe()
[all …]
/linux-6.12.1/drivers/net/
Dvirtio_net.c358 struct xdp_buff **xsk_buffs; member
1353 struct xdp_buff **xsk_buffs; in virtnet_add_recvbuf_xsk() local
1359 xsk_buffs = rq->xsk_buffs; in virtnet_add_recvbuf_xsk()
1361 num = xsk_buff_alloc_batch(pool, xsk_buffs, rq->vq->num_free); in virtnet_add_recvbuf_xsk()
1372 addr = xsk_buff_xdp_get_dma(xsk_buffs[i]) - vi->hdr_len; in virtnet_add_recvbuf_xsk()
1377 err = virtqueue_add_inbuf(rq->vq, rq->sg, 1, xsk_buffs[i], gfp); in virtnet_add_recvbuf_xsk()
1386 xsk_buff_free(xsk_buffs[i]); in virtnet_add_recvbuf_xsk()
5593 rq->xsk_buffs = kvcalloc(size, sizeof(*rq->xsk_buffs), GFP_KERNEL); in virtnet_xsk_pool_enable()
5594 if (!rq->xsk_buffs) in virtnet_xsk_pool_enable()
5631 kvfree(rq->xsk_buffs); in virtnet_xsk_pool_disable()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Den_rx.c572 struct xdp_buff **xsk_buffs = wi->alloc_units.xsk_buffs; in mlx5e_free_rx_mpwqe() local
580 xsk_buff_free(xsk_buffs[i]); in mlx5e_free_rx_mpwqe()
Den.h570 DECLARE_FLEX_ARRAY(struct xdp_buff *, xsk_buffs);
Den_main.c656 rq->wqe.frags[i].xskp = &rq->wqe.alloc_units->xsk_buffs[i]; in mlx5e_init_xsk_buffs()
674 aus_sz = sizeof(*aus->xsk_buffs); in mlx5e_init_wqe_alloc_info()