From c30ce80634b8a24f8e04511cbaa7011b21589ae3 Mon Sep 17 00:00:00 2001 From: Joe Jin Date: Wed, 22 Mar 2017 08:00:39 +0800 Subject: [PATCH] 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 --- drivers/scsi/lpfc/lpfc_els.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 768a0062656a..5c3684849779 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; -- 2.50.1