]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: lpfc: Add support for reporting encryption events
authorSarah Catania <sarah.catania@broadcom.com>
Thu, 11 Dec 2025 00:16:58 +0000 (16:16 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Dec 2025 02:56:48 +0000 (21:56 -0500)
commite2dacf8e5e33e9d268874882ad1e0d307f693db0
tree9786192c6c58948490113493bb900b48c96647b7
parentbd2bc528691e11ea945fbac485eb84c102a521d8
scsi: lpfc: Add support for reporting encryption events

Support logging encryption events in both point-to-point and fabric
topologies.  A new LOG_ENCRYPTION flag is defined for reporting
encryption related events for HBAs that support the FEDIF feature.
Encryption information is stored in each NDLP object, which is
determined during the discovery stage after PLOGI completes.

For reporting encryption information to upper layers, the
.get_fc_rport_enc_info routine is implemented in lpfc_get_enc_info().
This allows encryption status to be reported through fc_remote_ports
sysfs.  Debugfs is also updated to report encryption information for all
NDLP objects.

Signed-off-by: Sarah Catania <sarah.catania@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://patch.msgid.link/20251211001659.138635-3-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_attr.c
drivers/scsi/lpfc/lpfc_debugfs.c
drivers/scsi/lpfc/lpfc_disc.h
drivers/scsi/lpfc/lpfc_els.c
drivers/scsi/lpfc/lpfc_hbadisc.c
drivers/scsi/lpfc/lpfc_hw4.h
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/lpfc/lpfc_logmsg.h
drivers/scsi/lpfc/lpfc_sli4.h