linux/include/linux/mlx5
Nimrod Oren fbf6f64a43 net/mlx5: use internal dma pools for frag buf alloc
Add mlx5_dma_pool alloc/free paths, and wire mlx5_frag_buf allocation
and free paths to use them.

mlx5_frag_buf_alloc_node() now selects an mlx5_dma_pool to allocate
fragments from, instead of directly allocating full coherent pages.

mlx5_frag_buf_free() frees from the respective pool.

mlx5_dma_pool_alloc() keeps allocation fast by maintaining pages with
available indexes at the head of the list, so the common allocation path
can take a free index immediately. New backing pages are allocated only
when no free index is available.

mlx5_dma_pool_free() returns released indexes to the pool and frees a
backing page once all of its indexes become free. This avoids keeping
fully free pages for the lifetime of the pool and reduces coherent DMA
memory footprint.

Signed-off-by: Nimrod Oren <noren@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260429201429.223809-4-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-05-01 19:02:07 -07:00
..
cq.h mlx5: Fix default values in create CQ 2025-11-11 15:12:18 +01:00
device.h net/mlx5: Expose MLX5_UMR_ALIGN definition 2026-03-16 16:23:00 -04:00
doorbell.h
driver.h net/mlx5: use internal dma pools for frag buf alloc 2026-05-01 19:02:07 -07:00
eq.h
eswitch.h mlx5: Rename the vport number enums for host PF and VF 2026-04-29 16:28:30 -04:00
fs_helpers.h
fs.h {net/RDMA}/mlx5: Add LAG demux table API and vport demux rules 2026-03-16 16:23:00 -04:00
lag.h {net/RDMA}/mlx5: Add LAG demux table API and vport demux rules 2026-03-16 16:23:00 -04:00
macsec.h
mlx5_ifc_fpga.h
mlx5_ifc_vdpa.h
mlx5_ifc.h net/mlx5: Extend query_esw_functions output for multi-function support 2026-04-29 16:28:30 -04:00
mpfs.h
port.h net/mlx5: Fix 1600G link mode enum naming 2026-02-05 18:29:04 -08:00
qp.h net/mlx5e: Prevent WQE metadata conflicts between timestamping and offloads 2025-09-17 04:38:10 -04:00
rsc_dump.h
transobj.h
vport.h mlx5: Rename the vport number enums for host PF and VF 2026-04-29 16:28:30 -04:00