STRUCT MLX5_FPGA_CONN_ATTR(9)
π struct mlx5_fpga_conn_attr(9) β the Kernel API Manual glow-up
okay so bestie, you're looking at struct mlx5_fpga_conn_attr β the FPGA connection attributes struct β¨ It literally just describes the attributes of a connection. that's the whole vibe. it's giving "settings page for your FPGA connection" π
πΈ NAME πΈ
struct mlx5_fpga_conn_attr β FPGA connection attributes. Describes the attributes of a connection. that's it, that's the girl π
β¨ SYNOPSIS β¨
struct mlx5_fpga_conn_attr {
unsigned int tx_size;
unsigned int rx_size;
void (*recv_cb)(void *cb_arg, struct mlx5_fpga_dma_buf *buf);
void *cb_arg;
};
π¦ Members π¦ (the actual cast of characters)
tx_sizeβ size of the connection TX queue, measured in packets π€ like, how many packets your transmit queue can hold. iconic.rx_sizeβ size of the connection RX queue, measured in packets π₯ same energy, receive side.recv_cbβ the callback function that gets called for received packets π yeah she's the one doing the work when stuff arrives:cb_arg: the value you provided inmlx5_fpga_conn_attr.cb_argbuf: a buffer containing a received packet
π important caveat bestie:bufis guaranteed to only contain a single scatter-gather entry. The size of the actual packet received is specified inbuf.sg[0].size. And when this callback returns, the packet buffer may be re-used for subsequent receives β so don't go holding onto it like it's yours forever, it is NOT π
cb_argβ a context to be passed to therecv_cbcallback π«Ά your little grab-bag of whatever you want handed back to you.
π 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_dma_buf(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)
and that's the whole page, no cap π this one lives over at ./drivers/net/ethernet/mellano... (yes the original really does cut off like that, I don't make the rules π) and it's dated October 2026, filed under struct mlx5_fpga_conn_attr(9). mwah, go read your kernel headers bestie πππ§
π¦ 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