]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
scsi: lpfc: Restrict first burst to non-FCoE and SLI4 adapters only
authorJustin Tee <justin.tee@broadcom.com>
Thu, 12 Feb 2026 21:30:06 +0000 (13:30 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 24 Feb 2026 18:06:52 +0000 (13:06 -0500)
First burst is only supported on adapters running in SLI4 mode and that
are non-FCoE based.  Include sli_rev and FCoE mode checks before setting
the write transfer ready disabled bit in PRLIs.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://patch.msgid.link/20260212213008.149873-12-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_els.c

index 0af69c447c77d903b0f642a08eb7ab6ad0b06608..10b3e6027a57a24d2e6eb64a1cf85cdba6923bd1 100644 (file)
@@ -2649,7 +2649,9 @@ lpfc_issue_els_prli(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
                }
                npr->estabImagePair = 1;
                npr->readXferRdyDis = 1;
-               if (vport->cfg_first_burst_size)
+               if (phba->sli_rev == LPFC_SLI_REV4 &&
+                   !test_bit(HBA_FCOE_MODE, &phba->hba_flag) &&
+                   vport->cfg_first_burst_size)
                        npr->writeXferRdyDis = 1;
 
                /* For FCP support */