qed_iov_is_valid_vfid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– qed_iov_is_valid_vfid(9) πŸ’–

okay so this is from the Kernel API Manual, and it's literally the VF ID validity-checking bestie you didn't know you needed. no cap, it's giving "small function, big gatekeeping energy" πŸ‘‘


✨ NAME ✨

qed_iov_is_valid_vfid β€” check if the given VF ID @vfid is valid w.r.t. @b_enabled_only.

So the tea is: if b_enabled_only = true, only an enabled VF id is valid. otherwise, any VF id less than max_vfs is valid. that's the rule, periodt πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

bool qed_iov_is_valid_vfid (struct qed_hwfn *p_hwfn , int rel_vf_id , bool b_enabled_only , bool b_non_malicious );

🌸 ARGUMENTS 🌸

  • p_hwfn β€” HW device data. the hardware main-character struct, iykyk 🫢
  • rel_vf_id β€” Relative VF ID. literally the VF id we're checking, bestie.
  • b_enabled_only β€” consider only enabled VF. so if this is on, enabled-only is the vibe check.
  • b_non_malicious β€” true iff we want to validate vf isn't malicious. not me doing a lil security side-eye πŸ™ˆ

πŸ”₯ RETURN πŸ”₯

bool β€” true for valid VF ID. that's it, that's the answer, slay ✨


πŸŽ€ SEE ALSO πŸŽ€

Kernel file ./drivers/net/ethernet/qlogic/qed/qed_sriov.h β€” go read it, bestie, it's right there πŸ‘‘


made with πŸ’– from ./drivers/net/ethernet/qlogic/qed, dated October 2026 πŸŽ€

πŸ“¦ where this page comes from