mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 02:04:05 +08:00
lpfc: Fix internal loopback failure.
Signed-off-by: Dick Kennedy <dick.kennedy@emulex.com> Signed-off-by: James Smart <james.smart@emulex.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
This commit is contained in:
parent
be6bb94100
commit
6eae430328
@ -3337,7 +3337,11 @@ lpfc_els_retry(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
|
|||||||
/* FLOGI retry policy */
|
/* FLOGI retry policy */
|
||||||
retry = 1;
|
retry = 1;
|
||||||
/* retry FLOGI forever */
|
/* retry FLOGI forever */
|
||||||
maxretry = 0;
|
if (phba->link_flag != LS_LOOPBACK_MODE)
|
||||||
|
maxretry = 0;
|
||||||
|
else
|
||||||
|
maxretry = 2;
|
||||||
|
|
||||||
if (cmdiocb->retry >= 100)
|
if (cmdiocb->retry >= 100)
|
||||||
delay = 5000;
|
delay = 5000;
|
||||||
else if (cmdiocb->retry >= 32)
|
else if (cmdiocb->retry >= 32)
|
||||||
|
Loading…
Reference in New Issue
Block a user