From: Joe Jin Date: Wed, 22 Mar 2017 00:00:39 +0000 (+0800) Subject: lpfc cannot establish connection with targets that send PRLI under P2P mode X-Git-Tag: v4.1.12-102.0.20170529_2200~20 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c30ce80634b8a24f8e04511cbaa7011b21589ae3;p=users%2Fjedix%2Flinux-maple.git lpfc cannot establish connection with targets that send PRLI under P2P mode 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 Signed-off-by: James Smart Signed-off-by: Joe Jin --- diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 768a0062656a2..5c3684849779a 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c @@ -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;