STRUCT MLXBF_TMFIFO_VRING(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is the struct mlxbf_tmfifo_vring(9) page from the Kernel API Manual β€” and it's literally all about the Structure of the TmFifo virtual ring. main character struct energy, fr fr. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole struct, copied exactly because we do not mess with code, periodt:

struct mlxbf_tmfifo_vring {
    void *va;
    dma_addr_t dma;
    struct virtqueue *vq;
    struct vring_desc *desc;
    struct vring_desc *desc_head;
    struct vring_desc drop_desc;
    int cur_len;
    int rem_len;
    int rem_padding;
    u32 pkt_len;
    u16 next_avail;
    int num;
    int align;
    int index;
    int vdev_id;
    unsigned long tx_timeout;
    struct mlxbf_tmfifo *fifo;
};

🌸 Members 🌸

let's go member by member, no skips, no cap:

  • va β€” virtual address of the ring
  • dma β€” dma address of the ring
  • vq β€” pointer to the virtio virtqueue
  • desc β€” current descriptor of the pending packet
  • desc_head β€” head descriptor of the pending packet
  • drop_desc β€” dummy desc for packet dropping
  • cur_len β€” processed length of the current descriptor
  • rem_len β€” remaining length of the pending packet
  • rem_padding β€” remaining bytes to send as paddings
  • pkt_len β€” total length of the pending packet
  • next_avail β€” next avail descriptor id
  • num β€” vring size (number of descriptors)
  • align β€” vring alignment size
  • index β€” vring index
  • vdev_id β€” vring virtio id (VIRTIO_ID_xxx)
  • tx_timeout β€” expire time of last tx packet
  • fifo β€” pointer to the tmfifo structure

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/platform/mellanox/mlxbf-tmfifo.c plus the whole squad: struct mlxbf_tmfifo_vdev(9), struct mlxbf_tmfifo_irq_info(9), struct mlxbf_tmfifo_io(9), struct mlxbf_tmfifo(9), and struct mlxbf_tmfifo_msg_hdr(9). go read them too, iykyk πŸ’œ


sign-off: this page is from source/version ./drivers/platform/mellanox, dated October 2026, and yes it's the struct mlxbf_tmfifo_vring(9) page. slay and goodbye 🫢✨

πŸ“¦ where this page comes from