scsi: lpfc: Fix PT2PT PRLI reject
authorDick Kennedy <dick.kennedy@broadcom.com>
Thu, 23 Mar 2017 12:47:18 +0000 (08:47 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Mar 2017 15:19:37 +0000 (11:19 -0400)
lpfc cannot establish connection with targets that send PRLI in P2P
configurations.

If lpfc rejects a PRLI that is sent from a target the target will not
resend and will reject the PRLI send from the initiator.

[mkp: applied by hand]

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_els.c

index d9c61d030034da95854d2524406c17c202a317b9..a5ca37e45fb68266303244ca91fdc01d60e08f62 100644 (file)
@@ -7968,7 +7968,8 @@ lpfc_els_unsol_buffer(struct lpfc_hba *phba, struct lpfc_sli_ring *pring,
                        did, vport->port_state, ndlp->nlp_flag);
 
                phba->fc_stat.elsRcvPRLI++;
-               if (vport->port_state < LPFC_DISC_AUTH) {
+               if ((vport->port_state < LPFC_DISC_AUTH) &&
+                   (vport->fc_flag & FC_FABRIC)) {
                        rjt_err = LSRJT_UNABLE_TPC;
                        rjt_exp = LSEXP_NOTHING_MORE;
                        break;