lpfc_initial_fdisc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_initial_fdisc β€” from the Kernel API Manual ✨

okay so picture this: you're a virtual port (a vport, bestie) and you've literally never done fabric discovery before. not once. brand new. and this function? this is the glow-up. πŸ¦‹ lpfc_initial_fdisc is the routine that kicks off your very first Fabric Discover (FDISC) β€” your debut into the fabric, your main character entrance, your "hi bestie, i'm here" moment. periodt.


✨ SYNOPSIS ✨

int lpfc_initial_fdisc (struct lpfc_vport *vport );

πŸŽ€ ARGUMENTS πŸŽ€

  • vport β€” pointer to a host virtual N_Port data structure. yeah. it's the vport. it's the one getting the whole FDISC treatment. she's the moment. πŸ’–

🌸 DESCRIPTION 🌸

so this routine issues an initial Fabric Discover (FDISC) for the vport you handed it. that's the whole vibe. but the way that it does it is lowkey a little three-act structure, so let's break it down:

  1. first thing, it goes searching through the vport's ndlp list for an ndlp with Fabric_DID (0xfffffe). like, "do i already have my fabric buddy in here somewhere, or…" πŸ‘€
  2. if no such ndlp is found β€” no fabric buddy, tragic β€” it just creates one and drops it into the vport's ndlp list. making friends out of thin air, iconic honestly. πŸ’…
  3. if an inactive ndlp is found on the list? oh, she's not new, she's just resting. it gets enabled and made active. no new allocation needed, we're reviving the existing one. slay. ✨

then, once the whole ndlp situation is sorted, lpfc_issue_els_fdisc is invoked with the vport and the ndlp to actually perform the FDISC for the vport. that's the fireworks moment. πŸŽ†

and what do you get back? two possible return codes, no in-between:

  • 0 β€” failed to issue initial fdisc for vport. 😭 rough. not the vibe. we don't talk about it.
  • 1 β€” successfully issued initial fdisc for vport. πŸ”₯ ate. no crumbs. the fabric now knows about you.
ngl the 0 vs 1 thing is a real vibe check β€” don't assume 0 means "all good," because in this house 0 is the failure. read your return value carefully bestie, i'm begging. 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

this is the entire friendship group, and honestly they're all in the same file, so it's giving family reunion:

and yes, all of these live in the kernel file ./drivers/scsi/lpfc/lpfc_els.c β€” one file, one giant friend group, no cap. πŸ’€

kay that's the whole page bestie!! 🌈 this lil gem comes to you from the good people at ./drivers/scsi/lpfc, dated October 2026, and it's filed under lpfc_initial_fdisc(9) β€” go forth and discover some fabric, you absolute icon πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from