lpfc_update_cmf_cmpl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_update_cmf_cmpl β€” the Kernel API Manual tea β˜•

okay so bestie, gather round, because we're reading a kernel API page together and honestly? it's giving main character energy. this is lpfc_update_cmf_cmpl, straight out of the Kernel API Manual, and it's lowkey iconic. let's get into it ✨


🌸 NAME 🌸

lpfc_update_cmf_cmpl β€” adjusts the CMF counters when an IO completes. that's it, that's the vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int lpfc_update_cmf_cmpl (struct lpfc_hba *phba , uint64_t time ,
uint32_t size , struct Scsi_Host *shost );

like, copy it exactly, no cap. four args, one return, we move πŸ’…


🌈 ARGUMENTS 🌈

  • phba β€” the HBA this call is running for. it's her HBA, she's the moment.
  • time β€” how long the IO took to complete, measured in ns (nanoseconds, yes, we're being that precise 🫢).
  • size β€” the size of the IO that just completed.
  • shost β€” the SCSI host the IO completed on. it's NULL for a NVME IO, so if you're passing NULL bestie, that's not a bug, that's a NVME IO. πŸ’€

πŸ’– DESCRIPTION πŸ’–

so what does this routine actually do? it adjusts the various Burst and Bandwidth counters β€” the ones used in Congestion management and E2E. that's the whole job, and she does it slayfully.

now here's the plot twist πŸ‘‘: if time is set to LPFC_CGN_NOT_SENT, that means the IO was never issued to the HBA. so this routine isn't doing the normal counter thing β€” it's just being called to clean up the counter from a previous lpfc_update_cmf_cmd call. it's giving cleanup crew energy, and honestly? we respect it. 🧹✨


⭐ SEE ALSO ⭐

the kernel file, first and foremost:

  • Kernel file ./drivers/scsi/lpfc/lpfc_scsi.c

and then, bestie, the entire friend group 😭 β€” every single one of these, no skipping, iykyk:


ngl bestie, that's a lot of cross-references, but every single one is real and every single one is in the original. we do not drop friends around here. 🫢

πŸŽ€ the cute sign-off πŸŽ€

this little masterpiece lives in ./drivers/scsi/lpfc, and it was dated October 2026. so yeah, she's from the future, she's in your kernel tree, and she's adjusting CMF counters like the icon she is. periodt. πŸ’œπŸ”₯🌸

bye bestie, go complete some IOs πŸ¦‹βœ¨

πŸ“¦ where this page comes from