From: Krzysztof Kozlowski <krzk@kernel.org>
To: Justin Tee <justintee8345@gmail.com>, linux-scsi@vger.kernel.org
Cc: jsmart2021@gmail.com, justin.tee@broadcom.com
Subject: Re: [PATCH 09/11] lpfc: Add capability to register Platform Name ID to fabric
Date: Tue, 28 Oct 2025 08:34:15 +0100 [thread overview]
Message-ID: <921bd950-4e62-4140-a015-c41ea7f07989@kernel.org> (raw)
In-Reply-To: <20251027235446.77200-10-justintee8345@gmail.com>
On 28/10/2025 00:54, Justin Tee wrote:
> FC-LS and FC-GS specifications outline fields for registering a platform
> name identifier (PNI) to the fabric. The PNI assists fabrics with
> identifying the physical server source of frames in the fabric.
>
> lpfc generates a PNI based partially on the uuid specific for the system.
> Initial attempts to extract a uuid are made from SMBIOS's System
> Information 08h uuid entry. If SMBIOS DMI does not exist, then Open
> Firmware Device-Tree's virtual partition uuid property is used. Otherwise,
> a PNI is not generated and PNI registration with the fabric is skipped.
>
> The PNI is submitted in FLOGI and FDISC frames. After successful fabric
> login, the RSPNI_PNI CT frame is submitted to the fabric to register the OS
> host name tying it to the PNI.
>
> Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Still does not match From address.
> ---
> drivers/scsi/lpfc/lpfc.h | 4 ++
> drivers/scsi/lpfc/lpfc_ct.c | 36 +++++++++++++
> drivers/scsi/lpfc/lpfc_els.c | 18 +++++--
> drivers/scsi/lpfc/lpfc_hbadisc.c | 2 +
> drivers/scsi/lpfc/lpfc_hw.h | 25 ++++++++-
> drivers/scsi/lpfc/lpfc_nportdisc.c | 4 --
> drivers/scsi/lpfc/lpfc_sli.c | 83 ++++++++++++++++++++++++++++++
> 7 files changed, 164 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/scsi/lpfc/lpfc.h b/drivers/scsi/lpfc/lpfc.h
> index 8459cf568c12..f892bb2d119a 100644
> --- a/drivers/scsi/lpfc/lpfc.h
> +++ b/drivers/scsi/lpfc/lpfc.h
> @@ -633,6 +633,7 @@ struct lpfc_vport {
> #define FC_CT_RSPN_ID 0x8 /* RSPN_ID accepted by switch */
> #define FC_CT_RFT_ID 0x10 /* RFT_ID accepted by switch */
> #define FC_CT_RPRT_DEFER 0x20 /* Defer issuing FDMI RPRT */
> +#define FC_CT_RSPNI_PNI 0x40 /* RSPNI_PNI accepted by switch */
>
> struct list_head fc_nodes;
> spinlock_t fc_nodes_list_lock; /* spinlock for fc_nodes list */
> @@ -1077,6 +1078,9 @@ struct lpfc_hba {
>
> uint32_t nport_event_cnt; /* timestamp for nlplist entry */
>
> + unsigned long pni; /* 64-bit Platform Name Identifier */
> +#define PATH_UUID_IBM "ibm,partition-uuid"
Where did you document the ABI?
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-10-28 7:34 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-27 23:54 [PATCH 00/11] Update lpfc to revision 14.4.0.12 Justin Tee
2025-10-27 23:54 ` [PATCH 01/11] lpfc: Update various NPIV diagnostic log messaging Justin Tee
2025-10-27 23:54 ` [PATCH 02/11] lpfc: Revise discovery related function headers and comments Justin Tee
2025-10-27 23:54 ` [PATCH 03/11] lpfc: Remove redundant NULL ptr assignment in lpfc_els_free_iocb Justin Tee
2025-10-27 23:54 ` [PATCH 04/11] lpfc: Ensure unregistration of rpis for received PLOGIs Justin Tee
2025-10-27 23:54 ` [PATCH 05/11] lpfc: Fix leaked ndlp krefs when in point-to-point topology Justin Tee
2025-10-27 23:54 ` [PATCH 06/11] lpfc: Modify kref handling for Fabric Controller ndlps Justin Tee
2025-10-27 23:54 ` [PATCH 07/11] lpfc: Fix reusing an ndlp that is marked NLP_DROPPED during FLOGI Justin Tee
2025-10-27 23:54 ` [PATCH 08/11] lpfc: Allow support for BB credit recovery in point-to-point topology Justin Tee
2025-10-27 23:54 ` [PATCH 09/11] lpfc: Add capability to register Platform Name ID to fabric Justin Tee
2025-10-28 7:34 ` Krzysztof Kozlowski [this message]
2025-10-28 23:16 ` Justin Tee
2025-10-29 5:20 ` Krzysztof Kozlowski
2025-10-29 18:14 ` Justin Tee
2025-10-30 5:29 ` Krzysztof Kozlowski
2025-10-30 17:34 ` Justin Tee
2025-10-27 23:54 ` [PATCH 10/11] lpfc: Update lpfc version to 14.4.0.12 Justin Tee
2025-10-28 7:33 ` Krzysztof Kozlowski
2025-10-28 23:13 ` Justin Tee
2025-10-27 23:54 ` [PATCH 11/11] lpfc: Copyright updates for 14.4.0.12 patches Justin Tee
2025-10-28 7:32 ` Krzysztof Kozlowski
2025-10-28 23:13 ` Justin Tee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=921bd950-4e62-4140-a015-c41ea7f07989@kernel.org \
--to=krzk@kernel.org \
--cc=jsmart2021@gmail.com \
--cc=justin.tee@broadcom.com \
--cc=justintee8345@gmail.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.