qed_init_vport_tc_wfq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… qed_init_vport_tc_wfq(9) β€” like, the whole glow-up

okay bestie, welcome to the Kernel API Manual entry for qed_init_vport_tc_wfq. yes it's a mouthful, yes it's iconic, let's get into it 🫢


✨ NAME ✨

qed_init_vport_tc_wfq β€” Initializes the WFQ weight of the specified VPORT and TC.

like, it sets the weight. that's the whole job. main character energy, minimal dialogue πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int qed_init_vport_tc_wfq (struct qed_hwfn *p_hwfn , struct qed_ptt
*p_ptt , u16 first_tx_pq_id , u16 weight );

it returns an int, it takes four args, and yes the line wrap is doing the most β€” copy it exactly, no cap πŸ“‹


πŸŽ€ ARGUMENTS πŸŽ€

  • p_hwfn β€” the HW device data. literally the hardware's whole vibe in a struct ✨
  • p_ptt β€” the Ptt window used for writing the registers. that's the window you're writing through, bestie πŸͺŸ
  • first_tx_pq_id β€” The first Tx PQ ID associated with the VPORT and TC. (filled by qed_qm_pf_rt_init) β€” so you don't fill this in yourself, somebody else already did πŸ™ˆ
  • weight β€” VPORT+TC WFQ weight. the actual number that matters βš–οΈ

🌸 RETURN 🌸

  • 0 on success πŸ₯³
  • -1 on error πŸ’€

that's it. zero means slay, minus one means it's giving error, periodt.


🧚 SEE ALSO 🧚

this list is LONG and honestly kind of iconic, so here it is in full, every single one:

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

go read all of them, i'll wait πŸ’œ


lowkey a reminder: first_tx_pq_id comes filled in by qed_qm_pf_rt_init β€” don't be out here inventing your own ID, bestie 😭

and that's the page!! 🌈 source/version vibes: ./drivers/net/ethernet/qlogic/qed, dated October 2026, and the page itself is literally qed_init_vport_tc_wfq(9). mwah, bye πŸ“

πŸ“¦ where this page comes from