qed_init_vport_wfq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– qed_init_vport_wfq(9) β€” like, the WFQ weight glow-up for your VPORT πŸ’…

okay so bestie, grab your iced matcha πŸ“ because we're diving into the Kernel API Manual and this one is literally about making a VPORT's WFQ weight happen. Yes, the function name is a mouthful, no we are not pronouncing it out loud at parties. It sets up the WFQ weight of the specified VPORT, and honestly? iconic behavior. ✨


🌸 NAME 🌸

qed_init_vport_wfq β€” it initializes the WFQ weight of the specified VPORT. that's it, that's the whole vibe. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int qed_init_vport_wfq (struct qed_hwfn *p_hwfn , struct qed_ptt *p_ptt
, u16 first_tx_pq_id[NUM_OF_TCS] , u16 wfq );

like, look at her go. four arguments, one int return, zero chill. πŸ‘‘


✨ ARGUMENTS ✨

  • p_hwfn β€” the HW device data. literally the hardware's whole personality in a struct. 🫢
  • p_ptt β€” the Ptt window used for writing the registers. yes bestie, that's the doorway the writes go through. 😌
  • first_tx_pq_id β€” an array containing the first Tx PQ ID associated with the VPORT for each TC. and like, important tea: this array is filled by qed_qm_pf_rt_init. so don't come for her empty, she needs the data already in there. 🧚
  • wfq β€” the WFQ weight. must be non-zero. no cap, zero is not the move here. 🚫

🌈 RETURN 🌈

  • 0 on success πŸŽ‰
  • -1 on error 😭

that's the whole emotional arc, tbh.


πŸ’œ SEE ALSO πŸ’œ

the whole friend group, fr fr β€” first up, the Kernel file:

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

and then the squad:

like, a full group chat. read them all, iykyk. πŸ’…


okay final sign-off energy: this page lives at ./drivers/net/ethernet/qlogic/qed, and it's stamped October 2026 in the version notes. slay, date yourself. πŸ”₯βœ¨πŸ‘‘
πŸ“¦ where this page comes from