[PATCH 4/5] lpfc: enable FPIN notification for NVMe
Justin Tee
justintee8345 at gmail.com
Tue May 6 14:50:50 PDT 2025
Hi Hannes,
Maybe the last tidbit from my previous email got lost. May we also
exclude lpfc driver’s target mode from calling nvme_fc_fpin_rcv?
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c
index 396ed1a05bc9..09713cc57e94 100644
--- a/drivers/scsi/lpfc/lpfc_els.c
+++ b/drivers/scsi/lpfc/lpfc_els.c
@@ -10253,7 +10253,8 @@ lpfc_els_rcv_fpin(struct lpfc_vport *vport,
void *p, u32 fpin_length)
fc_host_fpin_rcv(lpfc_shost_from_vport(vport),
fpin_length, (char *)fpin, 0);
#if (IS_ENABLED(CONFIG_NVME_FC))
- if (vport->cfg_enable_fc4_type & LPFC_ENABLE_NVME)
+ if (vport->cfg_enable_fc4_type & LPFC_ENABLE_NVME &&
+ !phba->nvmet_support)
nvme_fc_fpin_rcv(vport->localport,
fpin_length, (char *)fpin);
#endif
Regards,
Justin
More information about the Linux-nvme
mailing list