[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250926000200.837025-9-jmeneghi@redhat.com>
Date: Thu, 25 Sep 2025 20:01:57 -0400
From: John Meneghini <jmeneghi@...hat.com>
To: hare@...e.de,
kbusch@...nel.org,
martin.petersen@...cle.com,
linux-nvme@...ts.infradead.org,
linux-scsi@...r.kernel.org
Cc: bgurney@...hat.com,
axboe@...nel.dk,
emilne@...hat.com,
gustavoars@...nel.org,
hch@....de,
james.smart@...adcom.com,
jmeneghi@...hat.com,
kees@...nel.org,
linux-hardening@...r.kernel.org,
njavali@...vell.com,
sagi@...mberg.me
Subject: [PATCH v10 08/11] scsi: lpfc: enable FPIN notification for NVMe
Call fc_host_fpin_set_nvme_rport_marginal() to enable FPIN notifications
for NVMe.
Co-developed-by: Hannes Reinecke <hare@...nel.org>
Signed-off-by: Hannes Reinecke <hare@...nel.org>
Tested-by: Bryan Gurney <bgurney@...hat.com>
Signed-off-by: John Meneghini <jmeneghi@...hat.com>
---
drivers/scsi/lpfc/lpfc_els.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c
index 1511cabac636..bfd9ba4552f3 100644
--- a/drivers/scsi/lpfc/lpfc_els.c
+++ b/drivers/scsi/lpfc/lpfc_els.c
@@ -10256,9 +10256,14 @@ lpfc_els_rcv_fpin(struct lpfc_vport *vport, void *p, u32 fpin_length)
fpin_length += sizeof(struct fc_els_fpin); /* the entire FPIN */
/* Send every descriptor individually to the upper layer */
- if (deliver)
+ if (deliver) {
fc_host_fpin_rcv(lpfc_shost_from_vport(vport),
fpin_length, (char *)fpin, 0);
+ if (vport->cfg_enable_fc4_type & LPFC_ENABLE_NVME) {
+ fc_host_fpin_set_nvme_rport_marginal(lpfc_shost_from_vport(vport),
+ fpin_length, (char *)fpin);
+ }
+ }
desc_cnt++;
}
}
--
2.51.0
Powered by blists - more mailing lists