qed_init_pf_wfq(9)
π qed_init_pf_wfq β a Kernel API Manual moment (section 9, bestie)
Okay so picture this: you're deep in the kernel API manual, section 9, and you stumble onto qed_init_pf_wfq. That's the whole vibe. This little icon does exactly one thing and does it slay: it initializes the WFQ weight of the specified PF. That's it. That's the function. π
β¨ SYNOPSIS β¨
int qed_init_pf_wfq (struct qed_hwfn *p_hwfn , struct qed_ptt *p_ptt ,
u8 pf_id , u16 pf_wfq );
No cap, that's the signature, copied character for character because I respect you. π«Ά
πΈ ARGUMENTS πΈ
p_hwfnβ the HW device data. Like, the whole hardware situation, wrapped up in a struct. Main character energy honestly.p_pttβ the Ptt window used for writing the registers. That's your little doorway into register-land, iykyk. πͺβ¨pf_idβ the PF ID. Which PF? This one. πpf_wfqβ the WFQ weight. Must be non-zero. Not "should be", not "ideally" β must. Zero is not invited to this party. π
β RETURN β
0on success β slay, you ate, periodt. π-1on error β it's giving struggle, but at least it's honest. π
π¦ SEE ALSO π¦
Bestie, the lore goes deep. First up, the kernel file:
./drivers/net/ethernet/qlogic/qed/qed_hsi.h
And the whole friend group:
qed_qm_pf_mem_size(9)qed_qm_common_rt_init(9)qed_qm_pf_rt_init(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)
That's a whole group chat, lowkey. Go read them, they're all interconnected and it's honestly iconic. π
π«Ά Real talk though: pf_wfq being non-zero isn't a suggestion, it's a requirement. Respect the constraint, bestie. π
And that's the page! Huge shoutout to the source/version <cyan>./drivers/net/ethernet/qlogic/qed</cyan> and the date <purple>October 2026</purple> β this manual entry <hotpink>qed_init_pf_wfq(9)</hotpink> was brought to you by them, and honestly? They ate. πβ¨ Byeee, go initialize some weights! π§π
π¦ 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