qed_qm_pf_mem_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ qed_qm_pf_mem_size ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one's a lil function from the qlogic qed squad and honestly it's giving "quiet but crucial" energy. like it's not flashy, but nothing else works without it. iykyk 🫢


🌸 NAME 🌸

qed_qm_pf_mem_size β€” the girl who prepares the QM ILT sizes before literally anyone else is allowed to do math πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

u32 qed_qm_pf_mem_size (u32 num_pf_cids , u32 num_vf_cids , u32 num_tids
, u16 num_pf_pqs , u16 num_vf_pqs );

like yes, that's a lot of parameters, but she handles all five of them flawlessly. main character energy fr fr πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • num_pf_cids β€” how many connections (cids) this PF is using. it's giving ✨the pf's own connections✨
  • num_vf_cids β€” how many connections the VFs of this PF are using. not hers, the VFs'. she's just counting them, no cap 🫑
  • num_tids β€” how many tasks this PF is using. tasks!! so many tasks!! 😭
  • num_pf_pqs β€” how many PQs this PF has. note this one's a u16, not a u32 β€” yes bestie, the types are mixed, that's just how she is πŸ’€
  • num_vf_pqs β€” how many PQs the VFs of this PF have. again u16. again VF business 🌈

πŸ’œ RETURN πŸ’œ

she hands back the required host memory size in 4KB units β€” like a u32 little gift 🎁 that's it, that's the whole vibe check.


πŸ”₯ DESCRIPTION πŸ”₯

so basically: this function returns the required host memory size in 4KB units. literally that's the job and she ate πŸ”₯

⚠️ okay but the important part bestie: it must be called before all QM init HSI functions. not after, not during, before. do not test her on this πŸ™ˆ

⭐ SEE ALSO ⭐

first up, the kernel file where all the HSI lore lives:

  • ./drivers/net/ethernet/qlogic/qed/qed_hsi.h

and then the whole friend group πŸ’– (yes, she has a lot of mutuals):


✨ and that's the whole page babes ✨

this lil icon lives over in ./drivers/net/ethernet/qlogic/qed and the date on her birth certificate says October 2026 β€” so yeah, she's from the future and she still slays πŸ’…πŸ¦‹ mwah, go call your HSI init functions in the right order πŸ’œ

πŸ“¦ where this page comes from