qed_qm_pf_mem_size(9)
β¨ 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 au16, not au32β yes bestie, the types are mixed, that's just how she is πnum_vf_pqsβ how many PQs the VFs of this PF have. againu16. 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):
qed_qm_common_rt_init(9)qed_qm_pf_rt_init(9)qed_init_pf_wfq(9)qed_init_pf_rl(9)qed_init_vport_wfq(9)qed_init_vport_tc_wfq(9)qed_init_global_rl(9)qed_send_qm_stop_cmd(9)qed_set_vxlan_dest_port(9)qed_set_vxlan_enable(9)qed_set_gre_enable(9)qed_set_geneve_dest_port(9)qed_set_geneve_enable(9)qed_gft_disable(9)qed_gft_config(9)qed_enable_context_validation(9)qed_get_protocol_type_str(9)qed_get_ramrod_cmd_id_str(9)qed_set_rdma_error_level(9)qed_fw_overlay_mem_alloc(9)qed_fw_overlay_init_ram(9)qed_fw_overlay_mem_free(9)
β¨ 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
- 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