Skip to content

Commit 683df5f

Browse files
Justin Teemartinkpetersen
authored andcommitted
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: Justin Tee <justin.tee@broadcom.com> Link: https://patch.msgid.link/20251106224639.139176-9-justintee8345@gmail.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 07caedc commit 683df5f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

drivers/scsi/lpfc/lpfc_els.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2279,7 +2279,8 @@ lpfc_issue_els_plogi(struct lpfc_vport *vport, uint32_t did, uint8_t retry)
22792279

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

22842285
/* Check if the destination port supports VMID */
22852286
ndlp->vmid_support = 0;
@@ -5670,7 +5671,8 @@ lpfc_els_rsp_acc(struct lpfc_vport *vport, uint32_t flag,
56705671
sp->cmn.valid_vendor_ver_level = 0;
56715672
memset(sp->un.vendorVersion, 0,
56725673
sizeof(sp->un.vendorVersion));
5673-
sp->cmn.bbRcvSizeMsb &= 0xF;
5674+
if (!test_bit(FC_PT2PT, &vport->fc_flag))
5675+
sp->cmn.bbRcvSizeMsb &= 0xF;
56745676

56755677
/* If our firmware supports this feature, convey that
56765678
* info to the target using the vendor specific field.

0 commit comments

Comments
 (0)