STRUCT MLX5_FPGA_DMA_BUF(9)
β¨ struct mlx5_fpga_dma_buf(9) β¨
okay bestie, welcome to the Kernel API Manual π this lil page is literally all about struct mlx5_fpga_dma_buf and it's giving peak main-character energy for your packet buffers, no cap π
πΈ NAME πΈ
struct mlx5_fpga_dma_buf β a packet buffer, and the way it may contain up to 2 scatter-gather data entries. that's it. two. iconic minimalism honestly π¦
β¨ SYNOPSIS β¨
struct mlx5_fpga_dma_buf {
enum dma_data_direction dma_dir;
struct mlx5_fpga_dma_entry sg[2];
struct list_head list;
void (*complete)(struct mlx5_fpga_conn *conn, struct mlx5_fpga_device *fdev, struct mlx5_fpga_dma_buf *buf, u8 status);
};
likeβ¦ look at her. the whole struct. stunning π
π Members π
dma_dirβ the DMA direction, aka which way the data is vibing π§sgβ scatter-gather entries that point to the data in memory. it's an array, bestie, and it holds up to 2 entries πlistβ this one's an item in the SQ backlog, specifically for TX packets π¬completeβ the completion routine, also for TX packets. and omg it has its own lil squad of parameters, let me break it down for u π«Άconn: FPGA Connection this packet was sent tofdev: FPGA device this packet was sent tobuf: The packet bufferstatus:0if successful, or an error code otherwise
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/mellanox/mlx5/core/fpga/sdk.h Innova SDK(9)enum mlx5_fpga_access_type(9)struct mlx5_fpga_dma_entry(9)struct mlx5_fpga_conn_attr(9)mlx5_fpga_sbu_conn_create(9)mlx5_fpga_sbu_conn_destroy(9)mlx5_fpga_sbu_conn_sendmsg(9)mlx5_fpga_mem_read(9)mlx5_fpga_mem_write(9)mlx5_fpga_get_sbu_caps(9)
like go read those too, they're all part of the friend group fr fr ππ₯
aaaand that's the whole page, bestie!! π this one came from ./drivers/net/ethernet/mellano... and it's dated October 2026, so yeah β go forth and buffer those packets, you absolute icon ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms