]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
lpfc cannot establish connection with targets that send PRLI under P2P mode
authorJoe Jin <joe.jin@oracle.com>
Wed, 22 Mar 2017 00:00:39 +0000 (08:00 +0800)
committerDhaval Giani <dhaval.giani@oracle.com>
Mon, 29 May 2017 21:26:17 +0000 (17:26 -0400)
Orabug: 25802913

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.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/scsi/lpfc/lpfc_els.c

index 768a0062656a23d630808a8f98cc7e23db7e18ef..5c3684849779a76049f2a9de3b85308b792d1426 100644 (file)
@@ -7792,7 +7792,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;