From: Vaios Papadimitriou Date: Tue, 8 May 2012 22:01:23 +0000 (-0500) Subject: Fix ELS FDISC failing with local reject / invalid RPI (CR 126350) X-Git-Tag: v2.6.39-400.9.0~423^2~123^2~27 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0436fdaee89ea81b44513ece3f6f2864ee2b1627;p=users%2Fjedix%2Flinux-maple.git Fix ELS FDISC failing with local reject / invalid RPI (CR 126350) No FDISC seen on the wire when running with SLI4, the ELS command fails with local reject / invalid RPI. Now allow the FDISC ELS command to use the temporary RPI and the Destination DID for SLI4-FC. commit id: 6b5151fd7baec6812fece993ddd7a2cf9fd0125f Signed-off-by: Maxim Uvarov --- diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c index 089807fe717d..c35d1f19e551 100644 --- a/drivers/scsi/lpfc/lpfc_sli.c +++ b/drivers/scsi/lpfc/lpfc_sli.c @@ -7756,6 +7756,7 @@ lpfc_sli4_iocb2wqe(struct lpfc_hba *phba, struct lpfc_iocbq *iocbq, if (if_type == LPFC_SLI_INTF_IF_TYPE_2) { if (pcmd && (*pcmd == ELS_CMD_FLOGI || *pcmd == ELS_CMD_SCR || + *pcmd == ELS_CMD_FDISC || *pcmd == ELS_CMD_PLOGI)) { bf_set(els_req64_sp, &wqe->els_req, 1); bf_set(els_req64_sid, &wqe->els_req,