STRUCT IDPF_VECTOR_LIFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct idpf_vector_lifo(9) πŸ’–

okay so bestie, welcome to the manual page for struct idpf_vector_lifo β€” that's the stack to maintain vector indexes used for vector distribution algorithm, and yes we're reading kernel docs together, it's giving study date energy πŸŽ€


✨ SYNOPSIS ✨

struct idpf_vector_lifo {
    u16 top;
    u16 base;
    u16 size;
    u16 *vec_idx;
 };

🌸 Members 🌸

  • top β€” points to the stack top, aka the next available vector index πŸ‘‘
  • base β€” always points to the start of the free pool, no cap, it never moves
  • size β€” the total size of the vector stack, the whole vibe check
  • vec_idx β€” the array that stores all the vector indexes πŸ—‚οΈ

πŸ¦‹ Description πŸ¦‹

so the vector stack keeps track of all the relative vector indexes at the adapter level, iykyk πŸ’…

this stack is split into 2 parts: the first one is called the 'default pool' and the other one is called the 'free pool' β€” two pools, one stack, main character energy fr fr ✨

the vector distribution algorithm gives priority to default vports, in a way that at least IDPF_MIN_Q_VEC vectors are allocated per default vport, and the relative vector indexes for those are maintained in the default pool. meanwhile the free pool contains all the unallocated vector indexes which can be allocated on-demand basis β€” like, whenever, bestie πŸ™ˆ

also! the mailbox vector index is maintained in the default pool of the stack. slay. periodt. πŸŽ€


⭐ SEE ALSO ⭐

kernel file ./drivers/net/ethernet/intel/idpf/idpf.h, plus literally this whole friend group:


k that's the whole page bestie, no gatekeeping, every single reference is here 🫢

and that's a wrap!! this one lives in ./drivers/net/ethernet/intel/idpf, dated October 2026, manual page struct idpf_vector_lifo(9) β€” go off, queen πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from