Commit 683df5fc authored by Justin Tee's avatar Justin Tee Committed by Martin K. Petersen
Browse files

scsi: lpfc: Allow support for BB credit recovery in point-to-point topology



Currently, BB credit recovery is excluded to fabric topology mode.  This
patch allows setting of BB_SC_N in PLOGIs and PLOGI_ACCs when in
point-to-point mode so that BB credit recovery can operate in
point-to-point topology as well.

Signed-off-by: default avatarJustin Tee <justin.tee@broadcom.com>
Link: https://patch.msgid.link/20251106224639.139176-9-justintee8345@gmail.com


Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 07caedc6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2279,6 +2279,7 @@ lpfc_issue_els_plogi(struct lpfc_vport *vport, uint32_t did, uint8_t retry)

	sp->cmn.valid_vendor_ver_level = 0;
	memset(sp->un.vendorVersion, 0, sizeof(sp->un.vendorVersion));
	if (!test_bit(FC_PT2PT, &vport->fc_flag))
		sp->cmn.bbRcvSizeMsb &= 0xF;

	/* Check if the destination port supports VMID */
@@ -5670,6 +5671,7 @@ lpfc_els_rsp_acc(struct lpfc_vport *vport, uint32_t flag,
			sp->cmn.valid_vendor_ver_level = 0;
			memset(sp->un.vendorVersion, 0,
			       sizeof(sp->un.vendorVersion));
			if (!test_bit(FC_PT2PT, &vport->fc_flag))
				sp->cmn.bbRcvSizeMsb &= 0xF;

			/* If our firmware supports this feature, convey that